OwnershipService class Null safety
The service to manage ownership registries.
Constructors
- OwnershipService(String _defaultOrigin, NodeService nodeService, dynamic db)
Properties
- hashCode → int
-
The hash code for this object.
read-only, inherited
- nodeService → NodeService
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
create(
{required String source, required TikiSdkDataTypeEnum type, String? origin, String? about, List< String> contains = const []}) → Future<OwnershipModel> - Creates a ownership register in the blockchain.
-
getBySource(
String source, {String? origin}) → OwnershipModel? -
Gets a OwnershipModel by its
source
andorigin
from local database. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited