PTAlertActivePeriod constructor

PTAlertActivePeriod({
  1. DateTime? start,
  2. DateTime? end,
})

Create a PTAlertActivePeriod.

API users do not typically create instances of this class directly.

Parameters

  • start: (DateTime?) UTC start of the period; null = active since forever.
  • end: (DateTime?) UTC end of the period; null = open-ended.

Implementation

PTAlertActivePeriod({this.start, this.end});