Skip to content

Commit b55d367

Browse files
craiglabenzPiinks
andauthored
Update packages/mediapipe-task-text/lib/src/tasks/text_classification/containers/text_classifier_options.dart
Co-authored-by: Kate Lovett <[email protected]>
1 parent fb483b4 commit b55d367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mediapipe-task-text/lib/src/tasks/text_classification/containers/text_classifier_options.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class TextClassifierOptions {
1313
/// Generative constructor.
1414
const TextClassifierOptions({
1515
required this.baseOptions,
16-
ClassifierOptions? classifierOptions,
17-
}) : classifierOptions = classifierOptions ?? const ClassifierOptions();
16+
this.classifierOptions = const ClassifierOptions(),
17+
});
1818

1919
/// Convenience constructor that looks for the model asset at the given file
2020
/// system location.

0 commit comments

Comments
 (0)