INNER CODE UNIT · Dart
InvocationMatcher
felangel/mocktail · packages/mocktail/lib/src/_invocation_matcher.dart:6
class InvocationMatcher {
/// {@macro incovation_matcher}
InvocationMatcher(this.roleInvocation);
/// The role invocation
final Invocation roleInvocation;
/// matches function which determines whether the current
/// [roleInvocation] matches the provided [invocation].
bool matches(Invocation invocation) {
final isMatching =
_isMethodMatches(invocation) && _isArgumentsMatches(invocation);
if (isMatching) {
_captureArguments(invocation);
}
return isMatching;
}