You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
大佬您好,关于此处: User get user => _profile.user;
由于_profile.user 是 User? 类型的, 所以在get的返回类型中改为了 User?
但当改好后User? get user => _profile.user; 又出现问题提示:The return type of getter 'user' is 'User?' which isn't a subtype of the type 'User' of its setter 'user'.
请问这种该如何解决呢? 谢谢!
The text was updated successfully, but these errors were encountered:
flutter_in_action_source_code/github_client_app/lib/states/profile_change_notifier.dart
Line 14 in e5e54b3
大佬您好,关于此处:
User get user => _profile.user;
由于
_profile.user
是User?
类型的, 所以在get的返回类型中改为了User?
但当改好后
User? get user => _profile.user;
又出现问题提示:The return type of getter 'user' is 'User?' which isn't a subtype of the type 'User' of its setter 'user'.请问这种该如何解决呢? 谢谢!
The text was updated successfully, but these errors were encountered: