takeItemTitle method
- dynamic context,
- dynamic task
Implementation
Widget takeItemTitle(BuildContext context, Task task) {
return Text(
task.title(),
style: task.isDone()
? Theme.of(context).textTheme.bodyMedium!.copyWith(
fontWeight: FontWeight.w100,
decoration: TextDecoration.lineThrough,
)
: Theme.of(context).textTheme.bodyMedium!,
);
}