@@ -33,6 +33,10 @@ abstract class BaseBmffContext {
3333///
3434/// {@endtemplate}
3535abstract class BmffContext extends BaseBmffContext {
36+ BmffContext ({
37+ List <String > fullBoxTypes = fullBoxType,
38+ }) : super (fullBoxTypes);
39+
3640 /// The length of the context.
3741 int get length;
3842
@@ -55,7 +59,10 @@ abstract class BmffContext extends BaseBmffContext {
5559/// {@endtemplate}
5660class BmffMemoryContext extends BmffContext {
5761 /// {@macro bmff.BmffMemoryContext}
58- BmffMemoryContext (this .bytes);
62+ BmffMemoryContext (
63+ this .bytes, {
64+ List <String > fullBoxTypes = fullBoxType,
65+ }) : super (fullBoxTypes: fullBoxTypes);
5966
6067 /// The bytes of the context.
6168 final List <int > bytes;
@@ -84,7 +91,9 @@ typedef RangeDataGetter = Future<List<int>> Function(int start, int end);
8491///
8592/// {@endtemplate}
8693abstract class AsyncBmffContext extends BaseBmffContext {
87- const AsyncBmffContext ();
94+ const AsyncBmffContext ({
95+ List <String > fullBoxTypes = fullBoxType,
96+ }) : super (fullBoxTypes);
8897
8998 /// The length of the context.
9099 Future <int > lengthAsync ();
@@ -108,7 +117,11 @@ abstract class AsyncBmffContext extends BaseBmffContext {
108117/// {@endtemplate}
109118class MemoryAsyncBmffContext extends AsyncBmffContext {
110119 /// {@macro bmff.MemoryAsyncBmffContext}
111- const MemoryAsyncBmffContext (this .lengthAsyncGetter, this .rangeDataGetter);
120+ const MemoryAsyncBmffContext (
121+ this .lengthAsyncGetter,
122+ this .rangeDataGetter, {
123+ List <String > fullBoxTypes = fullBoxType,
124+ }) : super (fullBoxTypes: fullBoxTypes);
112125
113126 /// Get the length of the context.
114127 final LengthGetter lengthAsyncGetter;
0 commit comments