AutoAdjustingDateTimeTickProvider.createWith constructor
AutoAdjustingDateTimeTickProvider.createWith(
- List<
TimeRangeTickProvider> potentialTickProviders
Creates AutoAdjustingDateTimeTickProvider with custom tick providers.
potentialTickProviders
must have at least one TimeRangeTickProvider
and this list of tick providers are used in the order they are provided.
Implementation
factory AutoAdjustingDateTimeTickProvider.createWith(
List<TimeRangeTickProvider> potentialTickProviders) {
if (potentialTickProviders == null || potentialTickProviders.isEmpty) {
throw ArgumentError('At least one TimeRangeTickProvider is required');
}
return AutoAdjustingDateTimeTickProvider._internal(potentialTickProviders);
}