GWAccount class Null safety

Properties

address String
Account's address.
final
auth Map<String, String>
read-only
createdAt DateTime
Account creation date
final
hashCode int
The hash code for this object.
read-only, override
id String
Account's id.
final
isDeleted bool
Whenever the account is deleted.
read / write
isDisabled bool
Whether the account is active or not.
read / write
messages Stream<GWMessage>
A stream of GWMessage
read-only
password String
Account's password.
final
quota int
Account's quota (To store message data).
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
updatedAt DateTime
Account update date
read / write
used int
Account's quota used.
read / write

Methods

delete() Future<bool>
Deletes the account Be careful to not use an account after it is been deleted
getAllMessages() Future<List<GWMessage>>
Returns all the account's messages
getMessages([int page = 1]) Future<List<GWMessage>>
Returns one page the account's messages (30 per page)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override
update() Future<GWAccount>
Updates the account instance and returns it

Operators

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