fromMap static method
- Map<
String, dynamic> ? map, { - EnumMethod? enumMethod,
Gets a possible ContextMenuItem instance from a Map value.
Implementation
static ContextMenuItem? fromMap(
Map<String, dynamic>? map, {
EnumMethod? enumMethod,
}) {
if (map == null) {
return null;
}
final instance = ContextMenuItem(
androidId: map['id'],
id: map['id'],
iosId: map['id'],
title: map['title'],
);
return instance;
}