NoteModel class

Value for model.

Annotations
  • @freezed
  • @formValue
  • @immutable
  • @CollectionModelPath.new("note")

Constructors

NoteModel({required String title, required String text, @Default.new(PublishEnum.public) PublishEnum publish, @Default.new(ModelTimestamp()) ModelTimestamp time, @Default.new([]) List<ModelImageUri> images, @RefParam.new(UserModelDocument) UserModelRef? user})
const
factory
NoteModel.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $NoteModelCopyWith<NoteModel>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
images List<ModelImageUri>
no setterinherited
publish PublishEnum
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
no setterinherited
time → ModelTimestamp
no setterinherited
title String
no setterinherited
user → ModelRefBase<UserModel>?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

collection → const _$NoteModelCollectionQuery
Query for collection.
document → const _$NoteModelDocumentQuery
Query for document.
form → const _$NoteModelFormQuery
Query for form value.