motor_flutter library

Motor Flutter

The Official Implementation of the Sonr Motor Node in Flutter. This package provides methods for Authentication, Data Management, and Wallet interactions for the Sonr Network. Quick Start

Classes

AclJwks
Alias
AuthInfo
BlockchainModule
BoolValue
Bucket
BucketContent
BucketContentList
BucketItem
BucketRole
BucketVisibility
BytesValue
ClientMode
ContinueOnSonrButton Widgets
The Sonr Register Button provides a Widget that can be used to trigger a dialog which walks the user through the process of registering a new account. Underneath this method calls MotorFlutter.createAccount.
CreateAccountRequest
CreateAccountResponse
CreateAccountWithKeysRequest
CreateAccountWithKeysResponse
CreateBucketRequest
CreateBucketResponse
CreatePasswordPage<T extends RegisterWalletController> Widgets
RegisterModalPage is a GetView that uses RegisterWalletController to manage its state This page is used to help guide users through the process of registering a new account.
CreateSchemaRequest
CreateSchemaResponse
DIDDocument
EntityKind
FloatValue
GetDocumentRequest
GetDocumentResponse
InitializeRequest
InitializeResponse
IntValue
KeyValuePair
Kind
LinkValue
ListValue
LobbyMessage
Log
It's a class that logs messages
LoginButton Widgets
The Sonr Login Button provides a Widget that can be used to trigger a dialog which walks the user through the login process. Underneath this method calls MotorFlutter.login.
LoginController
LoginPage<T extends LoginController> Widgets
This page is used to help guide users through the login process.
LoginRequest
LoginResponse
LoginWithKeysRequest
MetadataDefintion
MotorCallbackMessage
MotorFlutter Start Here
MotorFlutter
MsgApi
MsgBuyAlias
MsgBuyAliasResponse
MsgCreateWhoIs
MsgCreateWhoIsResponse
MsgDeactivateWhoIs
MsgDeactivateWhoIsResponse
MsgSellAlias
MsgSellAliasResponse
MsgTransferAlias
MsgTransferAliasResponse
MsgUpdateWhoIs
MsgUpdateWhoIsResponse
NebulaBorders Widgets
This class is used to define Border properties for the nebula theme.
NebulaColors Widgets
This class is used to define Color properties for the nebula theme.
NebulaDimensions Widgets
This class is used to define dimension or EdgeInsets properties for the nebula theme.
NebulaGradients Widgets
This class is used to define LinearGradient properties for the nebula theme.
NebulaRadii Widgets
This class is used to define radii properties for the nebula theme.
NebulaShadows Widgets
This class is used to define BoxShadow properties for the nebula theme.
NebulaTextStyles Widgets
This class is used to define TextStyle properties for the nebula theme.
PaymentRequest
PaymentResponse
Peer
Peer_Status
QueryRequest
QueryResponse
QueryResultItem
QuerySchemaRequest
QueryService Start Here
QueryService
QueryWhatIsByCreatorRequest
QueryWhatIsByCreatorResponse
QueryWhatIsRequest
QueryWhatIsResponse
QueryWhereIsByCreatorRequest
QueryWhereIsByCreatorResponse
QueryWhereIsRequest
QueryWhereIsResponse
QueryWhoIsByAliasRequest
QueryWhoIsRequest
QueryWhoIsResponse
RefreshEvent
RegisterWalletController
ResourceIdentifier
Schema
SchemaDocument
SchemaDocumentValue
SchemaField
SchemaFieldKind
SeachBucketContentBySchemaRequest
SearchBucketContentBySchemaResponse
SearchResponse
Service
SonrButton
SonrPasswordInput
SonrTextInput
StatRequest
StatResponse
StringValue
UpdateBucketRequest
UpdateBucketResponse
UploadDocumentRequest
UploadDocumentResponse
VerificationMethod
WALLET_EVENT_TYPE
WalletEvent
WhatIs
WhereIs
WhoIs
WhoIsType

Enums

ButtonVariant Widgets
This enum specifies the theme that the button should use. The default theme is ButtonVariant.blue.
RegisterState

Extensions

BucketItemExt on BucketItem
CreateAccountWithKeysResponseExt on CreateAccountWithKeysResponse Extensions
An extension on the CreateAccountWithKeysResponse class which provides a useful suite of methods to work with the CreateAccountResponse class.
MotorFlutterHelpers on MotorFlutter
SchemaDocumentExt on SchemaDocument Extensions
SchemaDocumentExt is an extension on the SchemaDocument class which provides a useful suite of methods to manage user generated data.
SchemaDocumentValueExt on SchemaDocumentValue Extensions
Extension on the SchemaDocumentValue class which provides a useful suite of methods to manage user generated data.
SchemaExt on Schema Extensions
Extension on the Schema class which provides a useful suite of methods to work with the Schema class.

Properties

isDebugMode bool
no setter
loadingQuotes List<String>
final

Typedefs

ErrorCallback = void Function(String)
Callback which returns the message from an error
HandleAuthInfoCallback = void Function(AuthInfo authInfo)
Callback that returns the AuthInfo post registration
HandleKeysCallback = void Function(List<int> deviceSharedKey, List<int> passwordSecuredKey)
Callback the returns the AES Keys for deviceSharedKey and passwordSecuredKey
HandleLoginCallback = void Function(WhoIs whoIs)
Callback that returns the AuthInfo post registration
ResponseCallback<T> = void Function(T?)
Callback that defines an expected response as a type
SchemaDocumentBuilder = Widget Function(BuildContext context, SchemaDocumentValue field)
Builder Method for Objects conforming to the Flutter Widget model
VoidCallback = void Function()
Callback that does not pass a parameter

Exceptions / Errors

UnmarshalException<T>
Error for when there is a Exception between the Motor Target platform Framework where the protobuf file is failing to unmarshal. You can find this class being used in motor_flutter_platform_channel.dart