buildText function

Widget buildText(
  1. BuildContext context,
  2. CounterState state
)

Helper function to build a text widget from counter state.

Implementation

Widget buildText(BuildContext context, CounterState state) =>
    Text('Count: ${state.count}');