OfflineBanner constructor

const OfflineBanner({
  1. Key? key,
  2. String message = 'nylo.offline_banner.message',
  3. Color? backgroundColor,
  4. Color? textColor,
  5. IconData? icon = Icons.wifi_off,
  6. double height = 40,
  7. bool animate = true,
  8. Duration animationDuration = const Duration(milliseconds: 300),
})

Implementation

const OfflineBanner({
  super.key,
  this.message = 'nylo.offline_banner.message',
  this.backgroundColor,
  this.textColor,
  this.icon = Icons.wifi_off,
  this.height = 40,
  this.animate = true,
  this.animationDuration = const Duration(milliseconds: 300),
});