UserRights mixin

Manages consumption of user rights and permissions.

Mixin applications
Available extensions

Properties

canCopy bool
Returns whether the user is currently allowed to copy content to the pasteboard.
no setter
canPrint bool
Returns whether the user is currently allowed to print the content.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canCopyText(String text) bool
Returns whether the user is allowed to copy the given text to the pasteboard.
canPrintPageCount(int pageCount) bool
Returns whether the user is allowed to print the given amount of pages.
copy(String text) bool
Consumes the given text with the copy right.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print(int pageCount) bool
Consumes the given amount of pages with the print right.
toJson() Map<String, dynamic>

Available on UserRights, provided by the UserRightsExtension extension

toString() String
A string representation of this object.
inherited

Operators

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