AMPSLocation constructor
AMPSLocation({
- double? longitude,
- double? latitude,
- CoordinateType? coordinate,
- int? timeStamp,
构造函数,支持初始化时设置属性
Implementation
AMPSLocation({
this.longitude,
this.latitude,
this.coordinate,
int? timeStamp,
}) {
this.timeStamp = timeStamp ?? 0; // 确保默认值为0
}