Skip to content

Revise message codecs for Dart 2.0 fixed-size integers #12976

@alexmarkov

Description

@alexmarkov

In Dart 2.0, int type is going to be a fixed-size 64-bit integer. See https://github.com/dart-lang/sdk/blob/master/docs/language/informal/int64.md for details.

Flutter message codecs support sending/receiving large integers, so we might consider revising this API to better fit fixed-size integers (either drop support for large integers, or use the new Dart BigInt class).

This change updates message codecs test to stop using large integer literals (which are illegal in Dart 2.0)

/cc @mravn-google @cbracken @floitschG

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions