reschedule static method
Reschedules a periodic task with a new interval.
Implementation
static Future<void> reschedule(
String name, {
required Duration interval,
}) async {
_ensureInitialized();
if (interval.inMinutes < 15) {
throw ArgumentError(
'Periodic task interval must be at least 15 minutes. Got: ${interval.inMinutes}min',
);
}
await TaskFlowPlatform.instance.reschedule(
name: name,
intervalMs: interval.inMilliseconds,
);
}