StubFormPort class
Stub form port for testing.
- Implemented types
Constructors
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
-
createDocument(
{required String templateId, required Map< String, dynamic> initialData, String? documentId, String? author}) → Future<FormResult< FormDocument> > -
Create a new form document from a template with initial data.
override
-
getDocument(
{required String documentId}) → Future< FormResult< FormDocument> > -
Retrieve a form document by its identifier.
override
-
getDocumentHistory(
{required String documentId}) → Future< FormResult< List< >FormDocumentVersion> > -
Retrieve the version history of a form document.
override
-
listDocuments(
{String? templateId, String? status, int? limit, int? offset}) → Future< FormResult< List< >FormDocument> > -
List form documents with optional filtering.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch(
{required String documentId, required List< FormPatchOperation> operations, required int targetVersion}) → Future<FormResult< FormDocument> > -
Apply patch operations to a form document.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
{required FormDocument document, bool autoFix = false}) → Future< FormResult< FormValidationResult> > -
Validate a form document, optionally applying auto-fixes.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited