verify method

Future<bool> verify(
  1. String path
)

Checks every tag. Returns false instead of throwing when the file is damaged.

Implementation

Future<bool> verify(String path) async {
  try {
    await for (final Uint8List _ in read(path)) {}
    return true;
  } on UAuthenticationException {
    return false;
  } on FormatException {
    return false;
  }
}