FmvvmState<T extends StatefulWidget, V extends BindableBase> constructor

  1. @mustCallSuper
FmvvmState<T extends StatefulWidget, V extends BindableBase>(
  1. V _bindableBase,
  2. bool _isNavigable
)

Creates the FmvvmState object.

_viewModel is the view model to be used. _isNavigable should be true if this widget will be treated like a page instead of part of a page.

Implementation

@mustCallSuper
FmvvmState(this._bindableBase, this._isNavigable) {
  if (_bindableBase is! ViewModel && _isNavigable) {
    throw ArgumentError("Navigable state objects must be of type ViewModel");
  }
}