DebugTimeMarker.fromClock constructor

DebugTimeMarker.fromClock({
  1. required String label,
  2. required Clock clock,
  3. String? source,
  4. int? sequence,
  5. bool fakeTime = true,
})

Implementation

factory DebugTimeMarker.fromClock({
  required String label,
  required Clock clock,
  String? source,
  int? sequence,
  bool fakeTime = true,
}) {
  return DebugTimeMarker(
    label: label,
    source: source,
    elapsed: clock.now,
    sequence: sequence,
    fakeTime: fakeTime,
  );
}