getText method

  1. @override
void getText(
  1. TStringRef aText,
  2. bool aDisplayText
)
override

Implementation

@override
void getText(TStringRef aText, bool aDisplayText) {
  aText.value = '';
  final ref = TIntRef(0);
  if (!getValue(ref)) return;
  final fmt =
      (aDisplayText || _editFormat == '') ? _displayFormat : _editFormat;
  if (fmt.isNotEmpty) {
    aText.value = formatFloat(fmt, ref.value);
  } else {
    aText.value = '${ref.value}';
  }
}