scope property

  1. @override
String? scope
final

An optional tag for separating values for different parts of your app.

This can be passed to NativeStorage.new or dynamically created via scoped which will create a subscope if this is not null.

Scopes are separated by a / character and, unlike namespace, are used to create a logical, but not physical, separation of values. For example, if scope is settings, calling storage.write('theme', 'dark') will store the value under the storage key settings/theme.

Implementation

@override
final String? scope;