FSelect<T extends App<T>> constructor

FSelect<T extends App<T>>(
  1. T app, {
  2. String? key,
  3. required List<String> options,
  4. int selectedIndex = 0,
  5. double controlWidth = 180.0,
  6. double controlHeight = 32.0,
  7. double itemHeight = 28.0,
  8. double fontSize = 14.0,
  9. double borderWidth = 2,
  10. double cornerRadius = 0.25,
  11. FSelectVariant selectVariant = .primary,
  12. void onChangeFn(
    1. FSelect<T> self,
    2. int index,
    3. String value
    )?,
})

Implementation

FSelect(super.app, {
  super.key,
  required this.options,
  this.selectedIndex = 0,
  this.controlWidth  = 180.0,
  this.controlHeight = 32.0,
  this.itemHeight    = 28.0,
  this.fontSize      = 14.0,
  this.borderWidth   = 2,
  this.cornerRadius  = 0.25,
  this.selectVariant = .primary,
  this.onChangeFn,
}) : assert(options.isNotEmpty, 'FSelect requires at least one option');