toInt method Null safety

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case NoiseType.uniform:
      return SYZ_NOISE_TYPE.SYZ_NOISE_TYPE_UNIFORM;
    case NoiseType.vm:
      return SYZ_NOISE_TYPE.SYZ_NOISE_TYPE_VM;
    case NoiseType.filteredBrown:
      return SYZ_NOISE_TYPE.SYZ_NOISE_TYPE_FILTERED_BROWN;
    case NoiseType.count:
      return SYZ_NOISE_TYPE.SYZ_NOISE_TYPE_COUNT;
  }
}