getStateKeysForNamespace method

List<String> getStateKeysForNamespace(
  1. String namespace
)

Get all state keys for a namespace

Implementation

List<String> getStateKeysForNamespace(String namespace) {
  return _state.keys
      .where((key) => key.startsWith('$namespace:'))
      .map((key) => key.substring(namespace.length + 1))
      .toList();
}