fromId static method

KalmanProfile fromId(
  1. int id
)

Converts an integer ID (from native) to a KalmanProfile.

Implementation

static KalmanProfile fromId(int id) =>
    KalmanProfile.values.firstWhere((p) => p.id == id,
        orElse: () => KalmanProfile.defaultProfile);