setLayoutDirection method Null safety

Future<void> setLayoutDirection(
  1. TextDirection layoutDirection
)

Sets the layout direction for the iOS UIView.

Implementation

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

  if (layoutDirection == _layoutDirection) {
    return;
  }

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

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