getArgumentsMap static method

Map<String, dynamic> getArgumentsMap({
  1. required void callback(
    1. LocationDto
    ),
  2. void initCallback(
    1. Map<String, dynamic>
    )?,
  3. Map<String, dynamic>? initDataCallback,
  4. void disposeCallback()?,
  5. AndroidSettings androidSettings = const AndroidSettings(),
  6. 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;
}