MotorFlutter class Null safety

This class is a GetxService that has a String property called name and a Stream property called stream that emits a String every second

Inheritance

Constructors

MotorFlutter()
It creates a new instance of the MotorFlutter class.

Properties

address RxString
Creating a reactive variable called address that is initialized to the value snr123abc.
final
authorized RxBool
Creating a reactive variable called authorized that is initialized to the value false.
final
balance RxInt
Creating a reactive variable called balance that is initialized to the value 0.
final
connected RxBool
Creating a reactive variable called connected that is initialized to the value false.
final
didDocument Rx<DIDDocument>
Creating a reactive variable called didDocument that is initialized to the value DIDDocument().
final
didUrl RxString
Creating a reactive variable called didUrl that is initialized to the value did:snr:abc123.
final
discoverEvents StreamController<RefreshEvent>
This is a stream controller that is used to emit events from the native side of the application.
final
domain RxString
Creating a reactive variable called domain that is initialized to the value test.snr/.
final
hashCode int
The hash code for this object.
read-only, inherited
initialized bool
Checks whether the controller has already been initialized.
read-only, inherited
isClosed bool
Checks whether the controller has already been closed.
read-only, inherited
methodChannel MethodChannel
This is a method channel that is used to communicate with the native side of the application.
final
nearbyPeers RxList<Peer>
Creating a reactive variable called nearbyPeers that is initialized to the value <Peer>[].
final
objectHistory RxList<ObjectReference>
This is a reactive variable that is used to store the history of objects that have been created.
final
onDelete InternalFinalCallback<void>
Internal callback that starts the cycle of this controller.
final, inherited
onStart InternalFinalCallback<void>
Called at the exact moment the widget is allocated in memory. It uses an internal "callable" type, to avoid any @overrides in subclases. This method should be internal and is required to define the lifetime cycle of the subclass.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
schemaHistory RxList<SchemaDefinition>
Creating a reactive variable called schemaHistory that is initialized to the value <SchemaDefinition>[].
final
staked RxString
Creating a reactive variable called staked that is initialized to the value 0.
final

Methods

$configureLifeCycle() → void
inherited
buyAlias(String alias, [ResponseCallback<MsgBuyAliasResponse>? callback]) Future<MsgBuyAliasResponse?>
buyAlias is a function that takes a String and an optional ResponseCallback<MsgBuyAliasResponse> and returns a Future<void>
connect([ResponseCallback<bool>? callback]) Future<bool>
Connect to the device, and call the callback with the result.
createAccount(String password, [ResponseCallback<CreateAccountResponse>? callback]) Future<CreateAccountResponse?>
Create a new account with the given password. If the password is correct, the account will be created and the account address will be returned. If the password is incorrect, an error will be returned.
createSchema(String label, Map<String, SchemaKind> fields, Map<String, String>? metadata, [ResponseCallback<CreateSchemaResponse>? callback]) Future<CreateSchemaResponse?>
createSchema creates a schema
getPlatformVersion() Future<String?>
This function returns a Future that resolves to a String that may be null.
init([ResponseCallback<InitializeResponse>? callback]) Future<MotorFlutter>
It initializes the motor flutter.
issueTokens(String to, String from, int amount, {String? memo}) Future<PaymentResponse?>
Issue tokens to the specified account.
login(AuthInfo info, [ResponseCallback<LoginResponse>? callback]) Future<LoginResponse?>
This function takes an AuthInfo object and an optional ResponseCallback function, and returns a Future.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onClose() → void
Called before onDelete method. onClose might be used to dispose resources used by the controller. Like closing events, or streams before the controller is destroyed. Or dispose objects that can potentially create some memory leaks, like TextEditingControllers, AnimationControllers. Might be useful as well to persist some data on disk.
override
onInit() → void
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
@mustCallSuper, inherited
onReady() → void
Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.
inherited
queryBucket(String q) Future<QueryWhereIsResponse?>

This function takes a string, and returns a future that will eventually contain a QueryWhereIsResponse object, or null

queryBucketByCreator(String creator) Future<QueryWhereIsByCreatorResponse?>
It queries the bucket by creator.
querySchema(String q) Future<QueryWhatIsResponse?>

This function takes a string, q, and returns a Future<QueryWhatIsResponse?>

querySchemaByCreator(String creator) Future<QueryWhatIsByCreatorResponse?>
It queries the schema by creator.
querySchemaByDid(String did) Future<QueryWhatIsResponse?>
It queries the schema by the DID.
refresh([ResponseCallback<StatResponse>? callback]) Future<StatResponse?>
This function will refresh the stats for the current user, and if a callback is provided, it will be called with the response.
sellAlias(String alias, int amount, [ResponseCallback<MsgSellAliasResponse>? callback]) Future<MsgSellAliasResponse?>
sellAlias is a function that takes a String and an int and returns a Future<MsgSellAliasResponse>
toString() String
A string representation of this object.
inherited
transferAlias(String alias, String recipient, int amount, [ResponseCallback<MsgTransferAliasResponse>? callback]) Future<MsgTransferAliasResponse?>
transferAlias is a function that takes a String called alias, a String called recipient, an int called amount, and an optional ResponseCallback<MsgTransferAliasResponse> called callback and returns a Future<void>

Operators

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

Static Properties

to MotorFlutter
This is a getter that is used to access the MotorFlutter instance.
read-only