How to make fixedLengthList in class model using @freezed?
@freezed
class Example with _$Example {
factory Example({
List<int> example, // this list should be max 5 positions, not more
}) = _Example;
}
How to make fixedLengthList in class model using @freezed?
@freezed
class Example with _$Example {
factory Example({
List<int> example, // this list should be max 5 positions, not more
}) = _Example;
}
Copyright © 2021 Jogjafile Inc.
You can do it like so: