fromMap static method

FindOptions? fromMap(
  1. Map<String, dynamic>? map, {
  2. EnumMethod? enumMethod,
})

Gets a possible FindOptions instance from a Map value.

Implementation

static FindOptions? fromMap(
  Map<String, dynamic>? map, {
  EnumMethod? enumMethod,
}) {
  if (map == null) {
    return null;
  }
  final instance = FindOptions(
    findTerm: map['findTerm'],
    shouldHighlightAllMatches: map['shouldHighlightAllMatches'],
    shouldMatchCase: map['shouldMatchCase'],
    shouldMatchWord: map['shouldMatchWord'],
    suppressDefaultFindDialog: map['suppressDefaultFindDialog'],
  );
  return instance;
}