getIndices3Day method

Future<DailyIndicesResp?> getIndices3Day(
  1. String location, {
  2. Set<IndicesType>? indicesTypes,
})
inherited

Implementation

Future<DailyIndicesResp?> getIndices3Day(String location,
    {Set<IndicesType>? indicesTypes}) async {
  if (indicesTypes == null ||
      indicesTypes.isEmpty ||
      (indicesTypes.length > 1 && indicesTypes.contains(IndicesType.ALL)))
    indicesTypes = {IndicesType.ALL};
  Map param = {
    "location": location,
    "indicesTypes": indicesTypes.map((e) => e.code).toList()
  };
  Map? value = await _methodChannel.invokeMapMethod(
      MethodConstants.GetIndices3Day, param);
  return value == null ? null : DailyIndicesResp.fromMap(value);
}