Skip to content

Should Base64 decoder have a return type of Uint8List? #31784

Closed
@jfphilbin

Description

In Dart version 2.0.0-dev.15.0 the following does not work:

BASE64.decode(s)?.buffer?.asInt32List();

Fixing this would only require changing the return type of List<int> convert in Base64Decoder
class to Uint8List convert. The _Base64.decode method already has type Uint8List.

Is there some reason is missing for not doing this?

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-convert

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions