toWidget method

  1. @override
Widget toWidget(
  1. BuildContext context
)
override

Return the associated Widget

Implementation

@override
Widget toWidget(BuildContext context) => MoneyText(
      key: id == null ? null : Key(id!),
      value: value ?? 0,
      currency: currency ?? 'XAF',
      color: toColor(color),
      numberFormat: numberFormat,
      valueFontSize: valueFontSize ?? 50,
      currencyFontSize: currencyFontSize ?? 12,
      bold: bold,
      textAlign: toTextAlign(alignment),
      locale: locale,
    );