increment method

void increment({
  1. int amount = 1,
})

Implementation

void increment({int amount = 1}) => attempts += amount;