NUIBanner constructor

const NUIBanner({
  1. Key? key,
  2. Widget? child,
  3. required String message,
  4. TextDirection? textDirection,
  5. required NUIBannerLocation location,
  6. TextDirection? layoutDirection,
  7. required Color color,
  8. TextStyle? textStyle,
  9. LinearGradient? gradient,
  10. double height = 12,
  11. BoxShadow shadow = const BoxShadow(color: Colors.black12, blurRadius: 6.0),
})

Implementation

const NUIBanner({
  Key? key,
  this.child,
  required this.message,
  this.textDirection,
  required this.location,
  this.layoutDirection,
  required this.color,
  this.textStyle,
  this.gradient,
  this.height = 12,
  this.shadow = const BoxShadow(
    color: Colors.black12,
    blurRadius: 6.0,
  )
}) : assert(message != null),
      assert(location != null),
      assert(color != null),
      assert(textStyle != null),
      super(key: key);