isRecent property

bool get isRecent

Whether this reading is recent enough to pre-fill a soil log form.

Implementation

bool get isRecent =>
    DateTime.now().difference(readAt).inMinutes < 10;