-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#849Labels
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
description
As part of our move on the ecosystem team to map native APIs more closely, we should allow returning nullable values.
example
Example: flutter/plugins#4732 (comment)
workaround
Wrapping return values into objects can workaround the issue
class Foo {
int? nullableResult;
}
@HostApi()
abstract class Api {
Foo foo();
}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.