newInstance static method

Future<QualityThresholds> newInstance({
  1. required BigInt excellent,
  2. required BigInt great,
  3. required BigInt good,
  4. required BigInt moderate,
  5. required BigInt poor,
})

Creates a new custom `QualityThresholds` instance.

Arguments

  • excellent - Threshold for 'Excellent' (ms).
  • great - Threshold for 'Great' (ms).
  • good - Threshold for 'Good' (ms).
  • moderate - Threshold for 'Moderate' (ms).
  • poor - Threshold for 'Poor' (ms).

Implementation

static Future<QualityThresholds> newInstance(
        {required BigInt excellent,
        required BigInt great,
        required BigInt good,
        required BigInt moderate,
        required BigInt poor}) =>
    RustLib.instance.api.crateApiModelsConfigQualityThresholdsNew(
        excellent: excellent,
        great: great,
        good: good,
        moderate: moderate,
        poor: poor);