except method
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;
}