buildControl method

Implementation

@protected
Widget buildControl(
  BuildContext context,
  FastCalculatorBlocState state,
) {
  final date = state.metadata[metatataKey] as String?;

  if (date == null || date.isEmpty || state.isBusy) {
    return const SizedBox.shrink();
  }

  return FastLastUpdatedText(date: date, labelText: labelText);
}