ClikgateEngage constructor
ClikgateEngage({
- Client? httpClient,
- EngageCore core = const ClikgateCoreBridge(),
- EngageUrlOpener? openUrl,
- Duration cacheTtl = const Duration(seconds: 60),
- Duration retryDelay = const Duration(milliseconds: 500),
- DateTime clock()?,
Implementation
ClikgateEngage({
http.Client? httpClient,
EngageCore core = const ClikgateCoreBridge(),
EngageUrlOpener? openUrl,
EngageTextSharer? shareText,
EngageLinkSharer? shareLink,
Duration cacheTtl = const Duration(seconds: 60),
Duration retryDelay = const Duration(milliseconds: 500),
DateTime Function()? clock,
}) : this._(
EngageClient(
core: core,
httpClient: httpClient,
cacheTtl: cacheTtl,
retryDelay: retryDelay,
clock: clock),
openUrl ?? _defaultOpenUrl,
shareText ?? _defaultShareText,
shareLink ?? _defaultShareLink,
);