RestorableDateTimeRaiiExt extension
Extension for managing RestorableDateTime lifecycle.
Example:
final createdAt = RestorableDateTime(DateTime.now())
.withLifecycle(this, debugLabel: 'CreatedAt');
Methods
-
withLifecycle(
RaiiLifecycleAware lifecycleAware, {String? debugLabel}) → RestorableDateTime -
Available on RestorableDateTime, provided by the RestorableDateTimeRaiiExt extension
Attaches this restorable date time to a RaiiLifecycleAware object for automatic disposal.