NUISkeletonContainer constructor

NUISkeletonContainer({
  1. required Widget child,
  2. Color? baseColor,
  3. Color? highlightColor,
  4. Duration duration = const Duration(milliseconds: 1500),
})

Implementation

NUISkeletonContainer({
  required this.child,
  Color? baseColor,
  Color? highlightColor,
  this.duration = const Duration(milliseconds: 1500),
}) : gradient = LinearGradient(
  begin: Alignment.topLeft,
  end: Alignment.centerRight,
  colors: [baseColor ?? NUIColors.NUISkeletalLightGray, baseColor ?? NUIColors.NUISkeletalLightGray, highlightColor ?? NUIColors.NUISkeletalGray, baseColor ?? NUIColors.NUISkeletalLightGray, baseColor ?? NUIColors.NUISkeletalLightGray],
  stops: const [0.0, 0.2, 0.5, 0.8, 1.0],
);