ManagedComponentResolver constructor

ManagedComponentResolver({
  1. required ManagedComponentSource source,
  2. PublishCache? cache,
  3. Duration timeout = const Duration(seconds: 3),
  4. Duration masterTtl = const Duration(minutes: 5),
  5. String sdkVersion = kCodelesslySdkVersion,
  6. DateTime clock()?,
  7. void onError(
    1. String instanceId,
    2. Object error
    )?,
})

Implementation

ManagedComponentResolver({
  required this.source,
  PublishCache? cache,
  this.timeout = const Duration(seconds: 3),
  this.masterTtl = const Duration(minutes: 5),
  this.sdkVersion = kCodelesslySdkVersion,
  DateTime Function()? clock,
  this.onError,
})  : cache = cache ?? MemoryPublishCache(),
      _clock = clock ?? DateTime.now;