getSleep property

Future<bool> getSleep

Returns the sleep state of the SDK.

Implementation

Future<bool> get getSleep async {
  try {
    return await _channel.invokeMethod('getSleep');
  } catch (e) {
    print("Kochava/Tracker/Flutter Error: getSleep: $e");
    return Future.value(false);
  }
}