init method

  1. @override
void init([
  1. TextInit? initValue
])
override

Initialize this object.

See ObjectPool.acquire for more information on how this gets called.

Implementation

@override
void init([TextInit? initValue]) {
  style = initValue?.style ?? const TextStyle();
  text = initValue?.text ?? '';
}