updatesMap method

Map<String, dynamic> updatesMap(
  1. MapOptions newOptions
)

Implementation

Map<String, dynamic> updatesMap(MapOptions newOptions) {
  final prevOptionsMap = toMap();

  return newOptions.toMap()
    ..removeWhere(
      (String key, dynamic value) => prevOptionsMap[key] == value,
    );
}