TextGetter<T>.ref constructor

const TextGetter<T>.ref(
  1. ValueGetter<GetT<T>> get, {
  2. Key? key,
  3. String describe(
    1. T value
    ),
  4. TextStyle style,
  5. TextAlign? align,
  6. int? maxLines,
  7. TextOverflow? overflow,
  8. bool softWrap,
  9. StrutStyle? strutStyle,
  10. TextHeightBehavior? textHeightBehavior,
  11. TextScaler? textScaler,
  12. TextWidthBasis? textWidthBasis,
})

Creates a widget displaying a string representation of a Get object's value.

Implementation

// TODO(nate-thegrate): ComputeRef here, so we don't need both a get getter & describe callback
const factory TextGetter.ref(
  ValueGetter<GetT<T>> get, {
  Key? key,
  String Function(T value) describe,
  TextStyle style,
  TextAlign? align,
  int? maxLines,
  TextOverflow? overflow,
  bool softWrap,
  StrutStyle? strutStyle,
  TextHeightBehavior? textHeightBehavior,
  TextScaler? textScaler,
  TextWidthBasis? textWidthBasis,
}) = _TextRef<T>;