DefaultSelectionStyle.fallback constructor Null safety
- {Key? key}
A const-constructable default selection style that provides fallback values.
Returned from of when the given BuildContext doesn't have an enclosing default selection style.
This constructor creates a DefaultTextStyle with an invalid child, which means the constructed value cannot be incorporated into the tree.
Implementation
const DefaultSelectionStyle.fallback({ super.key })
: cursorColor = null,
selectionColor = null,
super(child: const _NullWidget());