hasSleepGraphData method

Future<bool> hasSleepGraphData()

Check if have sleep graph data

Implementation

Future<bool> hasSleepGraphData() async {
  return (await getSleepLog(
          startDate: DateTime.now().add(const Duration(days: -1000)),
          endDate: DateTime.now()))
      .isNotEmpty;
}