Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle all possible values of
StrokePoint.t
(flutter-ml#316)
Flutter serializes all integers less than 2^32 [as an `int` instead of a `long`](https://docs.flutter.dev/development/platform-integration/platform-channels?tab=type-mappings-java-tab), so trying to pass a small number as `t` causes a `ClassCastException` here (see flutter-ml#242, which was prematurely closed by the OP). This probably happens all over the place and should be put in a helper method and sprinkled throughout the codebase, but this is the only place I've encountered it so far.
- Loading branch information