CompassEvent.fromList constructor

CompassEvent.fromList(
  1. List<double>? data
)

Implementation

CompassEvent.fromList(List<double>? data)
    : heading = data?[0],
      headingForCameraMode = data?[1],
      accuracy = (data == null) || (data[2] == -1) ? null : data[2];