DefaultTextStyle.fallback constructor

const DefaultTextStyle.fallback(
  1. {Key key}
)

A const-constructible default text style that provides fallback values.

Returned from of when the given BuildContext doesn't have an enclosing default text style.

This constructor creates a DefaultTextStyle that lacks a child, which means the constructed value cannot be incorporated into the tree.

Implementation

const DefaultTextStyle.fallback({ Key key })
  : style = const TextStyle(),
    textAlign = null,
    softWrap = true,
    maxLines = null,
    overflow = TextOverflow.clip,
    textWidthBasis = TextWidthBasis.parent,
    textHeightBehavior = null,
    super(key: key, child: null);