MockRule class

MockRule.

Constructors

MockRule({required String id, required bool enabled, required String method, required String url, required String match, required MockAction action, String? name, List<String>? apps, num createdAt = 0})
const

Properties

action → MockAction
final
apps → List<String>?
Bundle ids / package names; null or empty = every app.
final
createdAt → num
final
enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
label → String
Display label used in diagnostics headers.
no setter
match → String
contains | exact | glob | regex.
final
method → String
* or an HTTP method.
final
name → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Object? json) → MockRule?
Returns null when the JSON is not a usable rule.
listFromJson(Object? json) → List<MockRule>