ResourceProvider<TInputs extends Map<String, dynamic>, TOutputs extends Map<String, dynamic>> class abstract

Provider CRUD contract for dynamic resources.

Dart currently supports the provider model and resource wire format at the API layer. Runtime execution of serialized provider payloads is evolving.

Constructors

ResourceProvider()

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

check(TInputs olds, TInputs news) → Future<CheckResult<TInputs>>
Validates and normalizes input properties.
configure(ConfigureRequest request) → Future<void>
Configures provider state before resource operations.
create(TInputs inputs) → Future<CreateResult<TOutputs>>
Creates a new resource instance.
delete(String id, TOutputs props) → Future<void>
Deletes a resource instance.
diff(String id, TOutputs olds, TInputs news) → Future<DiffResult>
Computes update impact.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String id, [TOutputs? props]) → Future<ReadResult<TOutputs>>
Reads current state for an existing resource.
toString() → String
A string representation of this object.
inherited
update(String id, TOutputs olds, TInputs news) → Future<UpdateResult<TOutputs>>
Updates resource state.

Operators

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