toDateTime property

DateTime? toDateTime

Implementation

DateTime? get toDateTime => this == null
    ? null
    : DateTime(
        DateTime.now().year,
        DateTime.now().month,
        DateTime.now().day,
        this!.hours,
        this!.minutes,
      );