MockRoute constructor

MockRoute({
  1. required String path,
  2. required String method,
  3. required MockResponse? response,
  4. required String? action,
  5. required String? store,
})

Creates a route with an HTTP method, path, and either a static response or a stateful action.

Implementation

MockRoute({
  required this.path,
  required this.method,
  required this.response,
  required this.action,
  required this.store,
}) : _pathSegments = _splitPath(path);