getOnly method

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

Returns Map with specified Keys in List<String> keys

Implementation

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