only method

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

Gets multiple values at once.

Implementation

Map<String, dynamic> only(List<String> keys) {
  return {
    for (final key in keys)
      if (has(key)) key: get(key),
  };
}