void checkIfAllValsAreIn( { Map<> map, bool isBool, Function() callback}) async {...}
How do I make any one of these named parameters required when called?
Make them @required
@required
import 'package:meta/meta.dart'; void checkIfAllValsAreIn( { @required Map<> map, @required bool isBool, @required Function() callback}) async {...}
1.4m articles
1.4m replys
5 comments
56.9k users