bindAttribute method

Widget bindAttribute(
  1. Widget element,
  2. String attribute, [
  3. String builder(
    1. T value
    )?
])

Implementation

Widget bindAttribute(
  Widget element,
  String attribute, [
  String Function(T value)? builder,
]) {
  builder ??= (value) => value.toString();

  return StateAttributeWidget<T>(
      child: element, state: this, builder: builder, attribute: attribute);
}