We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using
_items = S2Choice.listFrom<T, T>( source: items!, value: (index, item) => item, title: (index, item) => item.title!, subtitle: (index, item) => item.subtitle, group: (index, item) => item.group, meta: (index, item) => item, );
where item.subtitle and item.group are String?.
String?
This fails with The return type 'String?' isn't a 'String', as required by the closure's context.
The return type 'String?' isn't a 'String', as required by the closure's context.
Basically, subtitle and group can either be provided or not provided, but if provided it must not be null; I need to provide it as null.
I fixed this locally and will submit a PR.
The text was updated successfully, but these errors were encountered:
Fix akbarpulatov#55: allow null group and subtitle
9ffebf7
983a3bd
ed39a1e
d341522
ba6dc30
No branches or pull requests
I am using
where item.subtitle and item.group are
String?
.This fails with
The return type 'String?' isn't a 'String', as required by the closure's context.
Basically, subtitle and group can either be provided or not provided, but if provided it must not be null; I need to provide it as null.
I fixed this locally and will submit a PR.
The text was updated successfully, but these errors were encountered: