build method
Describes the part of the user interface represented by this component.
Implementation
@override
Component build(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('Running tasks for $nameOfHook'),
if (debug) ...[
const SizedBox(height: 1),
Text(
'Started: ${pendingHook.startedTasks.join(', ')}',
style: const TextStyle(color: Colors.grey),
),
Text(
'Completed: ${pendingHook.completedTasks.join(', ')}',
style: const TextStyle(color: Colors.grey),
),
Text(
'Killed: ${pendingHook.wasKilled} Dead: ${pendingHook.isDead}',
style: const TextStyle(color: Colors.grey),
),
],
],
);
}