needsUpdate method

bool needsUpdate(
  1. Duration duration
)

Implementation

bool needsUpdate(Duration duration) =>
    updatedAt <
    (DateTime.now().subtract(duration).millisecondsSinceEpoch ~/ 1000);