injectMock method

void injectMock(
  1. NavigationBuilder mock, {
  2. String? startRoute,
})

Mock InjectedNavigator

Implementation

void injectMock(NavigationBuilder mock, {String? startRoute}) {
  (mock as InjectedNavigator)._navigationBuilder = this;
  return _navigationBuilder.injectMock(mock, startRoute: startRoute);
}