fromMap static method

ContextMenuSettings? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible ContextMenuSettings instance from a Map value.

Implementation

static ContextMenuSettings? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = ContextMenuSettings();
  instance.hideDefaultSystemContextMenuItems =
      map['hideDefaultSystemContextMenuItems'];
  return instance;
}