filteredAttributes method

Map<String, dynamic> filteredAttributes(
  1. List<String> allowedKeys
)

Implementation

Map<String, dynamic> filteredAttributes(List<String> allowedKeys) {
  var filtered = <String, dynamic>{};
  for (var key in allowedKeys) {
    if (attributes[key] != null) filtered[key] = attributes[key];
  }
  return filtered;
}