startSession method

Future<void> startSession()

Starts a new session.

Implementation

Future<void> startSession() async {
  if (_startSessionDate != null) {
    await endSession();
  }
  _startSessionDate = DateTime.now();
}