mock static method

dynamic mock(
  1. dynamic routerMock
)

Implementation

static mock(routerMock) {
  if (kDebugMode) {
    _instance = routerMock;
  }
}