resolveViewModel method

T? resolveViewModel(
  1. BuildContext context
)

Override this method to provide a custom ViewModel instance. By default, it retrieves the ViewModel from the service locator. Override this method to provide a custom ViewModel instance using a different method. e.g. GetIt, Provider, Constructor injection etc.

Implementation

T? resolveViewModel(BuildContext context) => null;