ModelSizeSegmentedControl constructor

const ModelSizeSegmentedControl({
  1. Key? key,
  2. required String currentSize,
  3. required Set<String> availableSizes,
  4. required ValueChanged<String> onSizeChanged,
  5. String? downloadingSize,
  6. double? downloadFraction,
  7. Set<String> supportedSizes = const {'n', 's', 'm', 'l', 'x'},
})

Implementation

const ModelSizeSegmentedControl({
  super.key,
  required this.currentSize,
  required this.availableSizes,
  required this.onSizeChanged,
  this.downloadingSize,
  this.downloadFraction,
  this.supportedSizes = const {'n', 's', 'm', 'l', 'x'},
});