Answers for "The argument type 'Widget' can't be assigned to the parameter type 'ObstructingPreferredSizeWidget?"

0

The argument type 'Widget' can't be assigned to the parameter type 'ObstructingPreferredSizeWidget?

final PreferredSizeWidget appbar = (Platform.isIOS ? CupertinoNavigationBar() : AppBar()) 
                                   as PreferredSizeWidget;
Posted by: Guest on April-19-2022

Code answers related to "The argument type 'Widget' can't be assigned to the parameter type 'ObstructingPreferredSizeWidget?"

Browse Popular Code Answers by Language