DeepLinkResultCard constructor
DeepLinkResultCard({
- Key? key,
- required DeepLinkResultStatus status,
- Future<
void> onRetry()?, - String? summaryText,
- bool busy = false,
- String title = 'Link result',
- String dispatchedLabel = 'Link opened',
- String queuedLabel = 'Link will open when the app is ready',
- String duplicateLabel = 'Link was already handled',
- String rejectedLabel = 'This link is not valid',
- String handlerFailedLabel = 'The link could not be completed',
- String retryLabel = 'Try again',
- String actionErrorLabel = 'Action failed. Try again.',
Implementation
DeepLinkResultCard({
super.key,
required this.status,
this.onRetry,
this.summaryText,
this.busy = false,
this.title = 'Link result',
this.dispatchedLabel = 'Link opened',
this.queuedLabel = 'Link will open when the app is ready',
this.duplicateLabel = 'Link was already handled',
this.rejectedLabel = 'This link is not valid',
this.handlerFailedLabel = 'The link could not be completed',
this.retryLabel = 'Try again',
this.actionErrorLabel = 'Action failed. Try again.',
}) {
for (final (name, value) in [
('title', title),
('dispatchedLabel', dispatchedLabel),
('queuedLabel', queuedLabel),
('duplicateLabel', duplicateLabel),
('rejectedLabel', rejectedLabel),
('handlerFailedLabel', handlerFailedLabel),
('retryLabel', retryLabel),
('actionErrorLabel', actionErrorLabel),
('summaryText', summaryText),
]) {
if (value != null && value.trim().isEmpty) {
throw ArgumentError.value(value, name, 'must not be blank');
}
}
}