INNER CODE UNIT · Dart

ArgMatcher

felangel/mocktail · packages/mocktail/lib/src/_arg_matcher.dart:6

class ArgMatcher<T> {
  /// {@macro arg_matcher}
  const ArgMatcher(this.matcher, this._fallbackValue, this._capture);

  /// The [Matcher] instance.
  final Matcher matcher;

  /// Whether to capture the arg.
  final bool _capture;

  /// Fallback value for null safety
  final T _fallbackValue;

  @override
  String toString() => '$ArgMatcher {$matcher: $_capture}';
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…