updateWith method

dynamic updateWith({
  1. required double position,
  2. double width = 0,
})

Implementation

updateWith({required double position, double width = 0}) {
  this.position = position;
  this.width = width > 0 ? width : this.width;
  this.lifetime = DateTime.now().millisecondsSinceEpoch;
//    debugPrint('update to $this');
}