only method

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

Get a subset of attributes.

Implementation

Map<String, dynamic> only(List<String> keys) {
  final result = <String, dynamic>{};
  for (final key in keys) {
    result[key] = getAttribute(key);
  }
  return result;
}