FileDescriptor.binaryMatcher constructor

FileDescriptor.binaryMatcher(
  1. String name,
  2. Matcher matcher
)

Creates a new binary FileDescriptor with name that matches its binary contents against matcher.

The create, read, and readAsBytes methods are unsupported for this descriptor.

Implementation

factory FileDescriptor.binaryMatcher(String name, Matcher matcher) =>
    _MatcherFileDescriptor(name, matcher, isBinary: true);