Identity class

Present for identity using app

Annotations
  • @sealed

Constructors

Identity({required String id, required Map<String, dynamic> data})
Present for identity using app

Properties

data Map<String, dynamic>
Identity data.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identify.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allows<Arg>(String ability, [Arg? arg]) FutureOr<bool>
Verify identity has ability with arg.
authorize<Arg>(String ability, [Arg? arg]) Future<void>
Like allows but throws AccessException.deny.
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