fromMap static method

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

Gets a possible ContextMenuItem instance from a Map value.

Implementation

static ContextMenuItem? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = ContextMenuItem(
    androidId: map['id'],
    id: map['id'],
    iosId: map['id'],
    title: map['title'],
  );
  return instance;
}