except method

Map<String, dynamic> except(
  1. List<String> keys
)
inherited

Get all attributes except the given keys.

Implementation

Map<String, dynamic> except(List<String> keys) {
  final result = <String, dynamic>{};
  final all = toMap();
  for (final key in all.keys) {
    if (!keys.contains(key)) {
      result[key] = all[key];
    }
  }
  return result;
}