buildText method

Widget buildText(
  1. dynamic context
)

Implementation

Widget buildText(context) {
  if (options!.text == null && options!.type != QuickAlertType.loading) {
    return Container();
  } else {
    String? text = '';
    if (options!.type == QuickAlertType.loading) {
      text = options!.text ?? 'Loading';
    } else {
      text = options!.text;
    }
    return Text(
      text ?? '',
      textAlign: options!.textAlignment ?? TextAlign.center,
      style: TextStyle(
        color: options!.textColor,
      ),
    );
  }
}