getKeys method Null safety

List<K> getKeys(
  1. {String? regex}
)

Returns the list of keys, optionally keys can be searched on regular expression @param - String : This is an optional parameter that accepts the regular expression and returns keys that finds the match @return - List : Returns list of keys

Implementation

List<K> getKeys({String? regex});