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

sprintf PrintFormat
getter/setter pair
uuid String
Get UUID.
no setter

Functions

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.

Typedefs

PrintFormatFormatter = Formatter Function(dynamic arg, dynamic options)