buildControl method
Widget
buildControl(
- BuildContext context,
- FastCalculatorBlocState<
FastCalculatorFields, FastCalculatorResults> state
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);
}