DefaultTextStyle.fallback constructor

const DefaultTextStyle.fallback()

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()
  : style = const TextStyle(),
    textAlign = null,
    softWrap = true,
    maxLines = null,
    overflow = TextOverflow.clip;