AppModuleMasamuneAdapter<TPages extends ModulePages, TOptions extends ModuleOptions> class abstract

MasamuneAdapter for creating module plug-ins for your application.

In addition to the normal modules listed below, theme and localize can be specified.

アプリケーションのモジュールプラグインを作成するためのMasamuneAdapter

下記の通常のモジュールに加えて、themelocalizeを指定することができます。

MasamuneAdapter for creating module plug-ins.

Follow the steps below to create it.

  1. Create a class that extends ModuleOptions.
  2. Create a class that inherits from ModulePages.
  • Include a list of pages.
  • If the page is not needed, create a private class and pass it directly to super.
  1. Create a class inheriting from ModuleMasamuneAdapter.
  2. Include the following methods in class 2.
  • Static method of primary.
  • When using other plug-ins in the module, specify the related MasamuneAdapter and MasamuneControllerBase as arguments.
  • Include all MasamuneAdapter in masamuneAdapters when using the above.

モジュールプラグインを作成するためのMasamuneAdapter

下記の手順で作成します。

  1. ModuleOptionsを継承したクラスを作成します。
  2. ModulePagesを継承したクラスを作成します。
  • ページの一覧を含めます。
  • ページが必要ない場合はプライベートなクラスを作りsuperにそのまま渡します。
  1. ModuleMasamuneAdapterを継承したクラスを作成します。
  2. 3のクラスに下記のメソッドを含めます。
  • primaryのStaticメソッド。
  • モジュール内で他プラグインを利用する場合は関連のMasamuneAdapterMasamuneControllerBaseを引数にて指定するようにします。
  • 上記を利用する場合すべてのMasamuneAdaptermasamuneAdaptersに含めます。
Inheritance
Annotations

Constructors

AppModuleMasamuneAdapter({required TOptions option, required TPages page, AppRef? appRef, AppRouter? router, Functions? function, Authentication? auth, LocalizedValue<String>? title, AppThemeData? theme, AppLocalizeBase? localize})
MasamuneAdapter for creating module plug-ins for your application.
const

Properties

auth → Authentication
Configuration for authentication used by katana_auth.
no setterinherited
functions → Functions
Configuration for Functions used by katana_functions.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
locale Locale
Locale of the application.
no setter
localize → AppLocalizeBase
Translation config used by katana_localization.
no setter
loggerAdapters List<LoggerAdapter>
Adapters can be defined to add logger functionality.
no setterinherited
masamuneAdapters List<MasamuneAdapter>
Additional MasamuneAdapter for internal use.
no setterinherited
Observers can be set up to monitor transitions between pages.
no setterinherited
option → TOptions
Module Options.
finalinherited
page → TPages
List of module pages.
finalinherited
ref → AppRef
Ref for application scope called by katana_scoped.
no setterinherited
routeQueries List<RouteQueryBuilder>
Additional pages for internal use.
no setterinherited
router → AppRouter
Config for router used by katana_router.
no setterinherited
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 setterinherited
theme → AppThemeData
Theme config used by katana_theme.
no setter
title → LocalizedValue<String>?
App Name.
final

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.
inherited
onError(Object error, StackTrace stackTrace) → void
You can describe the process when runZonedGuarded is set to true.
inherited
onInitScope(MasamuneAdapter adapter) → void
Called when initializing MasamuneAdapterScope.
inherited
onMaybeBoot() FutureOr<void>
It may be called during application initialization.
inherited
onPreRunApp() FutureOr<void>
You can describe the process before runApp.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited