updateLife method

void updateLife(
  1. double life
)

Implementation

void updateLife(double life) {
  _life = life;
  _textSize = _textConfig.measureText(_getLifeText());
}