EWTermsAndConditions constructor

EWTermsAndConditions({
  1. Key? key,
  2. bool isOnline = false,
  3. String? url,
  4. String? fallbackHTMLText,
  5. String acceptButtonText = 'Accept',
  6. String declineButtonText = 'Decline',
  7. VoidCallback? onAcceptPressed,
  8. VoidCallback? onDeclinePressed,
  9. String? notSupportedMessage,
  10. Widget? acceptedWidget,
  11. 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.');
}