before method

T before(
  1. Period period, {
  2. Duration duration = const Duration(microseconds: 1),
})

Returns the period before the given period by the rule: The Period.start is given to this of. The given duration is subtracted from the start of the resulting period and this is given to of.

Implementation

T before(
  Period period, {
  Duration duration = const Duration(microseconds: 1),
}) =>
    of(of(period.start).start.subtract(duration));