openOrThrow method

  1. @override
Future<void> openOrThrow(
  1. String path
)
override

Implementation

@override
Future<void> openOrThrow(String path) async {
  final result = await OpenFile.open(path);

  if (result.type != ResultType.done)
    throw ArgumentError.value(path, 'path', 'Failed to open file.');
}