onInitScope method

  1. @override
void onInitScope(
  1. MasamuneAdapter adapter
)
override

Called when initializing MasamuneAdapterScope.

It is possible to describe processes such as receiving an [adapter]' and making it a primary` adapter.

MasamuneAdapterScopeを初期化するときに呼ばれます。

adapterを受け取ってprimaryのアダプターにするなどの処理を記述することができます。

Implementation

@override
void onInitScope(MasamuneAdapter adapter) {
  super.onInitScope(adapter);
  if (adapter is! CalendarMasamuneAdapter) {
    return;
  }
  _primary = adapter;
}