We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9fc31c commit e2d9cbdCopy full SHA for e2d9cbd
packages/mediapipe-core/lib/src/task_options.dart
@@ -8,7 +8,7 @@ import 'ffi_utils.dart';
8
class BaseOptions extends Equatable {
9
const BaseOptions({this.modelAssetBuffer, this.modelAssetPath})
10
: assert(
11
- !(modelAssetBuffer == null && modelAssetPath == null),
+ modelAssetBuffer != null || modelAssetPath != null,
12
'You must supply either `modelAssetBuffer` or `modelAssetPath`',
13
),
14
assert(
0 commit comments