DeviceListComponent constructor

const DeviceListComponent({
  1. Key? key,
  2. required List<Device> devices,
  3. bool focused = false,
  4. int selectedIndex = 0,
  5. int scrollBufferItems = 2,
  6. void onSelectionChanged(
    1. int
    )?,
  7. void onDeviceLaunchRequested(
    1. Device
    )?,
  8. void onDeviceShowOptions(
    1. Device
    )?,
  9. void onDeviceShutdownRequested(
    1. Device
    )?,
  10. void onDeviceLogcatRequested(
    1. Device
    )?,
  11. bool isLoading = false,
  12. String loadingMessage = 'Loading devices...',
  13. String emptyMessage = 'No devices found',
})

Implementation

const DeviceListComponent({
  super.key,
  required this.devices,
  this.focused = false,
  this.selectedIndex = 0,
  this.scrollBufferItems = 2,
  this.onSelectionChanged,
  this.onDeviceLaunchRequested,
  this.onDeviceShowOptions,
  this.onDeviceShutdownRequested,
  this.onDeviceLogcatRequested,
  this.isLoading = false,
  this.loadingMessage = 'Loading devices...',
  this.emptyMessage = 'No devices found',
});