MasamuneAdapter class abstract
Adapter for easily adding functions to Masamune Framework.
Setting runZonedGuarded to true
allows wrapping runApp with runZonedGuarded.
At that time, onPreRunApp can be used to execute the process before runApp, and onError can be used to describe the process in case of an error.
You can set up observers to monitor transitions between pages at navigatorObservers.
Various adapters for the katana package are available at loggerAdapters, etc.
Widgets can be added during the build of MasamuneApp with onBuildApp.
Masamune Frameworkに機能を手軽に追加するためのアダプター。
アプリ起動時とMasamuneAppに渡す処理を記述することができます。
runZonedGuardedをtrue
にするとrunAppをrunZonedGuardedでラッピングすることができます。
その際、onPreRunAppでrunApp前の処理を実行することができ、onErrorでエラー時の処理を記述することができます。
navigatorObserversでページ間の遷移を監視するためのオブザーバーを設置することができます。
loggerAdaptersなどでkatanaパッケージの各種アダプターを利用することが可能です。
onBuildAppでMasamuneAppのビルド時にウィジェットを追加することが可能です。
- Available Extensions
Constructors
- MasamuneAdapter()
-
Adapter for easily adding functions to Masamune Framework.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
loggerAdapters
→ List<
LoggerAdapter> -
Adapters can be defined to add logger functionality.
no setter
-
Observers can be set up to monitor transitions between pages.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- runZonedGuarded → bool
-
If you set this to
true
, you can wrap runApp with runZonedGuarded.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onBuildApp(
BuildContext context, Widget app) → Widget - Widgets can be added during the build of MasamuneApp.
-
onError(
Object error, StackTrace stackTrace) → void -
You can describe the process when runZonedGuarded is set to
true
. -
onInitScope(
MasamuneAdapter adapter) → void - Called when initializing MasamuneAdapterScope.
-
onMaybeBoot(
) → FutureOr< void> - It may be called during application initialization.
-
onPreRunApp(
) → FutureOr< void> - You can describe the process before runApp.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited