Document class
Document entity class defining a document instance
Constructors
- Document.new({String? id, String? createdAt, String? updatedAt, String? statusText = '', String? status, String? content = '', DocumentKind? kind})
-
Document.fromJson(Map<
String, dynamic> json) -
factory
Properties
- content ↔ String?
-
Holds the content of the document
getter/setter pair
- createdAt ↔ DateTime
-
getter/setter pairinherited
- hasContent → bool
-
Whether this document has any content
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasStatusText → bool
-
Whether this document has statusText
no setter
- id ↔ String?
-
getter/setter pairinherited
- isApproved → bool
-
Whether this document status is APPROVED
no setter
- isDeclined → bool
-
Whether this document status is DECLINED
no setter
- isExpired → bool
-
Whether this document status is DECLINED
no setter
- isSubmitted → bool
-
Whether this document status is SUBMITTED
no setter
- isUnsubmitted → bool
-
Whether this document status is DECLINED
no setter
- kind ↔ DocumentKind?
-
Specifies what kind of document this is
getter/setter pair
- needsUploading → bool
-
Whether this Documents required to be uploaded, wither for the first time
or in case it has been declined or the document is expired
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String
-
Holds the status of the Document
getter/setter pair
- statusText ↔ String
-
Gives some information about the status
getter/setter pair
- updatedAt ↔ DateTime
-
getter/setter pairinherited
Methods
-
equals(
Entity other) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createDocName(
Document doc, User user) → String - Creates a name for a document for a user
Constants
- STATUS_APPROVED → const String
- STATUS_DECLINED → const String
- STATUS_EXPIRED → const String
- STATUS_SUBMITTED → const String
- STATUS_UNSUBMITTED → const String