volume static method

Volume volume(
  1. dynamic volume
)

Implementation

static Volume volume(dynamic volume) {
  if (volume is Volume) {
    return volume;
  }
  return Volume(volume);
}