getSolarElevationAngle method
Future<SolarElevationAngleRsp?>
getSolarElevationAngle({
- required String location,
- required String date,
- required String time,
- required String tz,
- required String alt,
inherited
date: 查询日期,日期格式为yyyyMMdd,例如 20200531 time: 查询时间,格式为HHmm,24时制,例如 1230 tz: 查询地区所在时区,例如0800 或 -0530 alt: 海拔高度,单位为米,例如 43
Implementation
Future<SolarElevationAngleRsp?> getSolarElevationAngle(
{required String location,
required String date,
required String time,
required String tz,
required String alt}) async {
Map param = {
"location": location,
"date": date,
"time": time,
"tz": tz,
"alt": alt
};
Map? value = await _methodChannel.invokeMapMethod(
MethodConstants.GetSolarElevationAngle, param);
return value == null ? null : SolarElevationAngleRsp.fromMap(value);
}