-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#1543Closed
Copy link
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listp: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
If you define a method that returns a nullable Map:
@HostApi()
abstract class PushHostApi {
Map<String?, Object?>? getNotification();
}
This generates some code, which has 1 invalid line:
return (replyMap['result'] as Map<Object?, Object?>?).cast<String?, Object?>();
There is a quick fix: add ? to the line, making it return (replyMap['result'] as Map<Object?, Object?>?)?.cast<String?, Object?>();
Looks like this was one edge case that was not supported as part of 2.0.0
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listp: pigeonrelated to pigeon messaging codegen toolrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
