FlutlyRichText constructor

FlutlyRichText({
  1. Key? key,
  2. required String font,
  3. required List<FlutlyText> texts,
  4. bool? shimmer,
})

Implementation

FlutlyRichText({
  super.key,
  required this.font,
  required this.texts,
  this.shimmer,
}) {
  FlutlyFonts fonts = Get.find<FlutlyFonts>();
  flutlyFont = fonts.getFont(font);

  shimmer ??= false;
  setCanShimmer(shimmer!);
  setShimmerType(FlutlyShimmerType.TEXT);
}