motor_flutter library Null safety
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
- Get started by Registering User Accounts and following the next steps at the bottom of the doc.
- Read the Full Sonr Stack Documentation and Motor Flutter API Reference
- Visit our Website and Join the Community Discord
- Submit Feature Requests at sonr.fyi
Classes
- AclJwks
- Alias
- ArrayValue
- AuthInfo
- BlockchainModule
- BoolValue
- Bucket
- BucketContent
- BucketContentList
- BucketItem
- BucketRole
- BucketVisibility
- BytesValue
- ContinueOnSonrButton
- 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
-
RegisterModalPage
is aGetView
that usesRegisterController
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
- LinkKind
- LinkValue
- LobbyMessage
- Log
- It's a class that logs messages
- LoginRequest
- LoginResponse
- LoginWithKeysRequest
- MetadataDefintion
- MotorCallbackMessage
- MotorFlutter Start Here
- MotorFlutter
- MsgApi
- MsgBuyAlias
- MsgBuyAliasResponse
- MsgCreateWhoIs
- MsgCreateWhoIsResponse
- MsgDeactivateWhoIs
- MsgDeactivateWhoIsResponse
- MsgSellAlias
- MsgSellAliasResponse
- MsgTransferAlias
- MsgTransferAliasResponse
- MsgUpdateWhoIs
- MsgUpdateWhoIsResponse
- NebulaBorders
- This class is used to define Border properties for the nebula theme.
- NebulaColors
- This class is used to define Color properties for the nebula theme.
- NebulaDimensions
- This class is used to define dimension or EdgeInsets properties for the nebula theme.
- NebulaGradients
- This class is used to define LinearGradient properties for the nebula theme.
- NebulaRadii
- This class is used to define radii properties for the nebula theme.
- NebulaShadows
- This class is used to define BoxShadow properties for the nebula theme.
- NebulaTextStyles
- This class is used to define TextStyle properties for the nebula theme.
- ObjectReference
- PaymentRequest
- PaymentResponse
- Peer
- Peer_Status
- QueryRequest
- QueryResponse
- QueryResultItem
- QuerySchemaRequest
- QueryService
- QueryWhatIsByCreatorRequest
- QueryWhatIsByCreatorResponse
- QueryWhatIsRequest
- QueryWhatIsResponse
- QueryWhereIsByCreatorRequest
- QueryWhereIsByCreatorResponse
- QueryWhereIsRequest
- QueryWhereIsResponse
- QueryWhoIsRequest
- QueryWhoIsResponse
- RefreshEvent
- RegisterWalletController
- ResourceIdentifier
- SchemaDefinition
- SchemaDocument
- SchemaDocumentValue
- SchemaItemKindDefinition
- SchemaKind
- SchemaKindDefinition
- SeachBucketContentBySchemaRequest
- SearchBucketContentBySchemaResponse
- SearchResponse
- Service
- StatRequest
- StatResponse
- StringValue
- UpdateBucketRequest
- UpdateBucketResponse
- UploadDocumentRequest
- UploadDocumentResponse
- UploadObjectResponse
- VerificationMethod
- WhatIs
- WhereIs
- WhoIs
- WhoIsType
Extensions
- BucketItemExt
- CreateAccountWithKeysResponseExt Extensions
- An extension on the CreateAccountWithKeysResponse class which provides a useful suite of methods to work with the CreateAccountResponse class.
- MotorFlutterHelpers
- SchemaDefinitionExt Extensions
- Extension on the SchemaDefinition class which provides a useful suite of methods to work with the SchemaDefinition class.
- SchemaDocumentExt Extensions
- SchemaDocumentExt is an extension on the SchemaDocument class which provides a useful suite of methods to manage user generated data.
- SchemaDocumentValueExt Extensions
- Extension on the SchemaDocumentValue class which provides a useful suite of methods to manage user generated data.
Constants
- kBlockchainRestApiUri → const String
-
"https://v1-beta.sonr.ws/sonr-io/sonr"
-
'SNR_MTR_DSC_KEY'
- kMotorKeychainPwdSecuredKey → const String
-
'SNR_MTR_PSK_KEY'
- kMotorPlatformChannelAddr → const String
-
"io.sonr.motor/MethodChannel"
- kMotorTempStorageName → const String
-
"motor_flutter"
Properties
- isDebugMode → bool
-
read-only
-
loadingQuotes
→ List<
String> -
final
Enums
- ButtonVariant
- This enum specifies the theme that the button should use. The default theme is ButtonVariant.blue.
- RegisterState
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> passwordSecuredKey) -
Callback the returns the AES Keys for
deviceSharedKey
andpasswordSecuredKey
-
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