getArgumentsMap static method
Map<String, dynamic>
getArgumentsMap({
- required void callback(),
- void initCallback()?,
- Map<
String, dynamic> ? initDataCallback, - void disposeCallback()?,
- AndroidSettings androidSettings = const AndroidSettings(),
- IOSSettings iosSettings = const IOSSettings(),
Implementation
static Map<String, dynamic> getArgumentsMap(
{required void Function(LocationDto) callback,
void Function(Map<String, dynamic>)? initCallback,
Map<String, dynamic>? initDataCallback,
void Function()? disposeCallback,
AndroidSettings androidSettings = const AndroidSettings(),
IOSSettings iosSettings = const IOSSettings()}) {
final args = _getCommonArgumentsMap(callback: callback,
initCallback: initCallback,
initDataCallback: initDataCallback,
disposeCallback: disposeCallback);
if (Platform.isAndroid) {
args.addAll(_getAndroidArgumentsMap(androidSettings));
} else if (Platform.isIOS) {
args.addAll(_getIOSArgumentsMap(iosSettings));
}
return args;
}