GoogleText constructor

const GoogleText(
  1. String text, {
  2. Key? key,
  3. GoogleTextVariant variant = GoogleTextVariant.bodyText1,
  4. TextAlign? textAlign,
  5. Color? color,
  6. TextOverflow? textOverflow,
  7. int? maxLines,
  8. bool? softWrap,
  9. double? fontSize,
})

Implementation

const GoogleText(
  this.text, {
  Key? key,
  this.variant = GoogleTextVariant.bodyText1,
  this.textAlign,
  this.color,
  this.textOverflow,
  this.maxLines,
  this.softWrap,
  this.fontSize,
}) : super(key: key);