Permission class abstract

Annotations
  • @freezed

Constructors

Permission.new({@Default({}) Set<PermissionItem> grants, @Default({}) Set<PermissionItem> revokes})
const
factory

Properties

copyWith → $PermissionCopyWith<Permission>
Create a copy of Permission with the given fields replaced by the non-null parameter values.
no setterinherited
grants Set<PermissionItem>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
revokes Set<PermissionItem>
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

Static Methods

encode(Permission value) Map<String, dynamic>
fromJSON(Map<String, dynamic> data) Permission