Directionality constructor

Directionality({
  1. required TextDirection textDirection,
  2. required Widget child,
})

Creates a widget that determines the directionality of text and text-direction-sensitive render objects.

The textDirection and child arguments must not be null.

Implementation

Directionality({
  required this.textDirection,
  required this.child,
});