TextValue.uniform constructor

TextValue.uniform(
  1. String? value, {
  2. bool isBold = false,
  3. bool isItalic = false,
  4. bool isUnderline = false,
  5. bool isStrikeThrough = false,
})

Implementation

factory TextValue.uniform(
  String? value, {
  bool isBold = false,
  bool isItalic = false,
  bool isUnderline = false,
  bool isStrikeThrough = false,
}) {
  return TextValue(
    lines: [
      if (value != null)
        TextValueLine(
          values: [
            TextItem(
              value,
              isBold: isBold,
              isItalic: isItalic,
              isUnderline: isUnderline,
              isStrikeThrough: isStrikeThrough,
            ),
          ],
        ),
    ],
  );
}