endAllActivityRecords static method

Future<List<ActivityRecord>> endAllActivityRecords()

Stops all the ongoing Activity records.

Implementation

static Future<List<ActivityRecord>> endAllActivityRecords() async {
  final List<dynamic>? result = await _channel.invokeMethod<List<dynamic>?>(
    'endAllActivityRecords',
  );

  List<ActivityRecord> records = <ActivityRecord>[];
  if (result != null) {
    for (dynamic e in result) {
      records.add(ActivityRecord.fromMap(e));
    }
  }
  return records;
}