updateLife method

void updateLife(
  1. double life, {
  2. bool verifyDieOrRevive = true,
})

Implementation

void updateLife(double life, {bool verifyDieOrRevive = true}) {
  _life = life;
  if (verifyDieOrRevive) {
    _verifyLimitsLife();
  }
}