TextGetter<T>.ref constructor
const
TextGetter<T>.ref (
- ValueGetter<
GetT< get, {T> > - Key? key,
- String describe(
- T value
- TextStyle style,
- TextAlign? align,
- int? maxLines,
- TextOverflow? overflow,
- bool softWrap,
- StrutStyle? strutStyle,
- TextHeightBehavior? textHeightBehavior,
- TextScaler? textScaler,
- 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>;