FlutlyText constructor

FlutlyText(
  1. String text, {
  2. Key? key,
  3. required String font,
  4. bool? shimmer,
})

Implementation

FlutlyText(
  this.text, {
  super.key,
  required this.font,
  this.shimmer,
}) {
  FlutlyFonts fonts = Get.find<FlutlyFonts>();
  flutlyFont = fonts.getFont(font);
  setShimmerType(FlutlyShimmerType.TEXT);
  shimmer ??= false;

  setCanShimmer(shimmer!);
}