toWidget method

  1. @override
Widget toWidget()
override

Get a Flutter widget equivalent object.

Descendants must override it.

Implementation

@override
Widget toWidget() => Directionality(
  textDirection: textDirection,
  child: child?.toWidget() ?? const SizedBox.shrink(),
);