fromMap static method

IOSInAppBrowserOptions fromMap(
  1. Map<String, dynamic> map
)
override

Implementation

static IOSInAppBrowserOptions fromMap(Map<String, dynamic> map) {
  var instance = IOSInAppBrowserOptions();
  instance.toolbarTopTranslucent = map["toolbarTopTranslucent"];
  instance.toolbarTopTintColor =
      UtilColor.fromHex(map["toolbarTopTintColor"]);
  instance.hideToolbarBottom = map["hideToolbarBottom"];
  instance.toolbarBottomBackgroundColor =
      UtilColor.fromHex(map["toolbarBottomBackgroundColor"]);
  instance.toolbarBottomTintColor =
      UtilColor.fromHex(map["toolbarBottomTintColor"]);
  instance.toolbarBottomTranslucent = map["toolbarBottomTranslucent"];
  instance.closeButtonCaption = map["closeButtonCaption"];
  instance.closeButtonColor = UtilColor.fromHex(map["closeButtonColor"]);
  instance.presentationStyle =
      IOSUIModalPresentationStyle.fromNativeValue(map["presentationStyle"])!;
  instance.transitionStyle =
      IOSUIModalTransitionStyle.fromNativeValue(map["transitionStyle"])!;
  return instance;
}