motor_flutter library Null safety API Reference

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

Log
It's a class that logs messages
MotorFlutter
MotorFlutter
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.
RegisterController
RegisterModalPage Widgets
RegisterModalPage is a GetView that uses RegisterController to manage its state This page is used to help guide users through the process of registering a new account.
SonrRegisterButton 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.

Extensions

CreateAccountWithKeysResponseExt
An extension on the CreateAccountWithKeysResponse class which provides a useful suite of methods to work with the CreateAccountResponse class.
MotorFlutterHelpers
MotorFlutterUI
MotorFlutterUI
SchemaDefinitionExt
Extension on the SchemaDefinition class which provides a useful suite of methods to work with the SchemaDefinition class.
SchemaDocumentExt
SchemaDocumentExt is an extension on the SchemaDocument class which provides a useful suite of methods to manage user generated data.
SchemaDocumentValueExt
Extension on the SchemaDocumentValue class which provides a useful suite of methods to manage user generated data.

Constants

kMotorKeychainDeviceSharedKey → const String
'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 Widgets
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
HandleKeysCallback = void Function(List<int> deviceSharedKey, List<int> passwordSecuredKey)
Callback the returns the AES Keys for deviceSharedKey and passwordSecuredKey
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