setLayoutDirection method

Future<void> setLayoutDirection (TextDirection layoutDirection)

Sets the layout direction for the Android view.

Implementation

Future<void> setLayoutDirection(TextDirection layoutDirection) async {
  assert(!_debugDisposed, 'trying to set a layout direction for a disposed Android View. View id: $id');

  if (layoutDirection == _layoutDirection)
    return;

  assert(layoutDirection != null);
  _layoutDirection = layoutDirection;

  // TODO(amirh): invoke the iOS platform views channel direction method once available.
}