getIndices1Day method

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

Implementation

Future<DailyIndicesResp?> getIndices1Day(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.GetIndices1Day, param);
  return value == null ? null : DailyIndicesResp.fromMap(value);
}