EWTermsAndConditions constructor
EWTermsAndConditions({
- Key? key,
- bool isOnline = false,
- String? url,
- String? fallbackHTMLText,
- String acceptButtonText = 'Accept',
- String declineButtonText = 'Decline',
- VoidCallback? onAcceptPressed,
- VoidCallback? onDeclinePressed,
- String? notSupportedMessage,
- Widget? acceptedWidget,
- PreferredSize? appBar,
Implementation
EWTermsAndConditions({
super.key,
this.isOnline = false,
this.url,
this.fallbackHTMLText,
this.acceptButtonText = 'Accept',
this.declineButtonText = 'Decline',
this.onAcceptPressed,
this.onDeclinePressed,
this.notSupportedMessage,
this.acceptedWidget,
this.appBar,
}) {
assert(url != null || fallbackHTMLText != null,
'Either url or fallback must be provided.');
}