MockRoute constructor
MockRoute({
- required String path,
- required String method,
- required MockResponse? response,
- required String? action,
- 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);