AMPSLocation constructor

AMPSLocation({
  1. double? longitude,
  2. double? latitude,
  3. CoordinateType? coordinate,
  4. int? timeStamp,
})

构造函数,支持初始化时设置属性

Implementation

AMPSLocation({
  this.longitude,
  this.latitude,
  this.coordinate,
  int? timeStamp,
}) {
  this.timeStamp = timeStamp ?? 0; // 确保默认值为0
}