getStyle method

TextStyle getStyle(
  1. BuildContext context,
  2. MissionTimer model
)

Gets the text style for the timer.

Implementation

TextStyle getStyle(BuildContext context, MissionTimer model) => model.underMin
  ? context.textTheme.headlineSmall!.copyWith(
    color: context.colorScheme.error,
    fontWeight: FontWeight.bold,
  )
  : context.textTheme.headlineSmall!.copyWith(color: context.colorScheme.onPrimary);