UIProShimmer.text constructor

UIProShimmer.text({
  1. Key? key,
  2. double? width,
  3. double height = 14,
  4. double borderRadius = 4,
  5. Color? baseColor,
  6. Color? highlightColor,
  7. Duration? duration,
  8. bool enabled = true,
})

Creates a text-like shimmer placeholder.

Implementation

factory UIProShimmer.text({
  Key? key,
  double? width,
  double height = 14,
  double borderRadius = 4,
  Color? baseColor,
  Color? highlightColor,
  Duration? duration,
  bool enabled = true,
}) {
  return UIProShimmer.box(
    key: key,
    width: width ?? double.infinity,
    height: height,
    borderRadius: borderRadius,
    baseColor: baseColor,
    highlightColor: highlightColor,
    duration: duration,
    enabled: enabled,
  );
}