isApproximately method

bool isApproximately(
  1. Duration other, {
  2. Duration tolerance = const Duration(seconds: 5),
})

Implementation

bool isApproximately(
  Duration other, {
  Duration tolerance = const Duration(seconds: 5),
}) => (this - other).abs() <= tolerance;