katana_mobile library

This package contains utility classes such as the Masamune package.

To use, import package:katana_mobile/katana_mobile.dart.

Classes

Config
Class that handles the app config.
Const
Class that defines a constant value.
FloatFormatter
Formatter
IntFormatter
Localize
Class to translate.
MetaConst
A key list for metadata.
MobileConfig
Class that manages the configuration of Masamune framework for mobile.
Prefs
Save and load data locally.
PrintFormat
StringFormatter
UserStateChangedCallback
Callback class to be called when the user's state is changed.

Properties

providerScopeKey GlobalKey<ProviderScopeState>
final
sprintf PrintFormat
getter/setter pair
uuid String
Get UUID.
no setter

Functions

focusNodeProvider() → AutoDisposeProviderFamily<FocusNode, bool>
The provider of the FocusNode.
generateCode(int length, {int seed = 0, String charSet = "23456789abcdefghjkmnpqrstuvwxy"}) String
Create a code of length length randomly for id.
jsonDecodeAsList<T extends Object>(String json, [List<T> defaultValue = const []]) List<T>
json decoding.
jsonDecodeAsMap<T extends Object>(String json, [Map<String, T> defaultValue = const {}]) Map<String, T>
json decoding.
openURL(String url) Future<void>
Open a new external url.
stateProvider<T>() → AutoDisposeChangeNotifierProviderFamily<ValueNotifier<T>, T>
The provider of the value notifier.
textEditingControllerProvider() → AutoDisposeProviderFamily<TextEditingController, String>
The provider of the TextEditingController.

Typedefs

DynamicList = List
Define a list for Json.
DynamicMap = Map<String, dynamic>
Define a map for Json.
PrintFormatFormatter = Formatter Function(dynamic arg, dynamic options)