PhoenixShimmer.rectangular constructor

PhoenixShimmer.rectangular({
  1. Key? key,
  2. double width = double.infinity,
  3. required double height,
  4. Color baseColor = const Color(0xFFE0E0E0),
  5. double borderRadius = 5,
  6. Color? highlightColor,
})

Implementation

PhoenixShimmer.rectangular({
  Key? key,
  this.width = double.infinity,
  required this.height,
  this.baseColor = const Color(0xFFE0E0E0),
  double borderRadius = 5,
  this.highlightColor,
})  : shapeBorder = RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(borderRadius),
      ),
      super(key: key);