StorageAccessLevel enum

This defines the storage access levels and their default corresponding prefixes. i.e. Objects are prefixed as following:

  • StorageAccessLevel.guest: 'public'
  • StorageAccessLevel.protected: 'protected/<identityId>'
  • StorageAccessLevel.private: 'private/<identityId>'
Inheritance

Constructors

StorageAccessLevel(String defaultPrefix)
This defines the storage access levels and their default corresponding prefixes. i.e. Objects are prefixed as following:
const

Values

guest → const StorageAccessLevel

Objects are accessible by all users.

const StorageAccessLevel('public')
protected → const StorageAccessLevel

Objects are readable by all users, but only writable by the creating user.

const StorageAccessLevel('protected')
private → const StorageAccessLevel

Objects are readable and writable only by the creating user

const StorageAccessLevel('private')

Properties

defaultPrefix String
The default prefix string for the chosen access level.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<StorageAccessLevel>
A constant List of the values in this enum, in order of their declaration.