DeviceListComponent constructor
const
DeviceListComponent({
- Key? key,
- required List<
Device> devices, - bool focused = false,
- int selectedIndex = 0,
- int scrollBufferItems = 2,
- void onSelectionChanged()?,
- void onDeviceLaunchRequested()?,
- void onDeviceShowOptions()?,
- void onDeviceShutdownRequested()?,
- void onDeviceLogcatRequested()?,
- bool isLoading = false,
- String loadingMessage = 'Loading devices...',
- 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',
});