CreatePost class CreatePost

This provider exposes a PostModel for creating or editing a post.

If the user is editing a post, the original data is set using the update method. Otherwise, a new PostModel is created. When setting data to update, the isEdited property is set to true. This is used to determine if the post should be created or edited.

Annotations

Constructors

CreatePost()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() PostModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
submitButtonHandler() Future<CreatePostResult?>
Submit the post to the database.
toString() String
A string representation of this object.
inherited
update(PostModel cb(PostModel state)) → void
Update the post model with the provided callback function.

Operators

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