addWheel method

int addWheel([
  1. WheelInfo? wheelInfo
])

Add a wheel. For information about the options, see WheelInfo.

Implementation

int addWheel([WheelInfo? wheelInfo]){
  final info = wheelInfo ?? WheelInfo();
  final index = wheelInfos.length;
  wheelInfos.add(info);

  return index;
}