takeItemTitle method

dynamic takeItemTitle(
  1. dynamic context,
  2. 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!,
  );
}