menu

  1. [ Flutter ](index.html)
  2. [ widgets.dart ](widgets/widgets-library.html)
  3. Directionality class 

Directionality

brightness_4  brightness_5

[ description
](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/basic.dart#L147
"View source code")

#  Directionality  class

A widget that determines the ambient directionality of text and text-
direction-sensitive render objects.

For example, [ Padding ](widgets/Padding-class.html) depends on the [
Directionality ](widgets/Directionality-class.html) to resolve [
EdgeInsetsDirectional ](painting/EdgeInsetsDirectional-class.html) objects
into absolute [ EdgeInsets ](painting/EdgeInsets-class.html) objects.

Inheritance

    

  * [ Object ](dart-core/Object-class.html)
  * [ DiagnosticableTree ](foundation/DiagnosticableTree-class.html)
  * [ Widget ](widgets/Widget-class.html)
  * [ ProxyWidget ](widgets/ProxyWidget-class.html)
  * [ InheritedWidget ](widgets/InheritedWidget-class.html)
  * Directionality 

##  Constructors

[ Directionality ](widgets/Directionality/Directionality.html) (  {  [ Key
](foundation/Key-class.html) ?  key  ,  required  [ TextDirection ](dart-
ui/TextDirection.html) textDirection  ,  required  [ Widget ](widgets/Widget-
class.html) child  }  )

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

const

##  Properties

[ child ](widgets/ProxyWidget/child.html) → [ Widget ](widgets/Widget-
class.html)

     The widget below this widget in the tree. 

final  inherited

[ hashCode ](widgets/Widget/hashCode.html) → [ int ](dart-core/int-class.html)

     The hash code for this object. 

no setter  inherited

[ key ](widgets/Widget/key.html) → [ Key ](foundation/Key-class.html) ?

     Controls how one widget replaces another widget in the tree. 

final  inherited

[ runtimeType ](dart-core/Object/runtimeType.html) → [ Type ](dart-core/Type-
class.html)

     A representation of the runtime type of the object. 

no setter  inherited

[ textDirection ](widgets/Directionality/textDirection.html) → [ TextDirection
](dart-ui/TextDirection.html)

     The text direction for this subtree. 

final

##  Methods

[ createElement ](widgets/Directionality/createElement.html) (  )  → [
InheritedElement ](widgets/InheritedElement-class.html)

     Inflates this configuration to a concrete instance. 

inherited

[ debugDescribeChildren
](foundation/DiagnosticableTree/debugDescribeChildren.html) (  )  → [ List
](dart-core/List-class.html) < [ DiagnosticsNode ](foundation/DiagnosticsNode-
class.html) >

     Returns a list of ` DiagnosticsNode ` objects describing this node's children. 

inherited

[ debugFillProperties ](widgets/Directionality/debugFillProperties.html) (  [
DiagnosticPropertiesBuilder ](foundation/DiagnosticPropertiesBuilder-
class.html) properties  )  → void

     Add additional properties associated with the node. 

override

[ noSuchMethod ](dart-core/Object/noSuchMethod.html) (  [ Invocation ](dart-
core/Invocation-class.html) invocation  )  → dynamic

     Invoked when a nonexistent method or property is accessed. 

inherited

[ toDiagnosticsNode ](foundation/DiagnosticableTree/toDiagnosticsNode.html) (
{  [ String ](dart-core/String-class.html) ?  name  ,  [ DiagnosticsTreeStyle
](foundation/DiagnosticsTreeStyle.html) ?  style  }  )  → [ DiagnosticsNode
](foundation/DiagnosticsNode-class.html)

     Returns a debug representation of the object that is used by debugging tools and by [ DiagnosticsNode.toStringDeep ](foundation/DiagnosticsNode/toStringDeep.html) . 

inherited

[ toString ](foundation/Diagnosticable/toString.html) (  {  [ DiagnosticLevel
](foundation/DiagnosticLevel.html) minLevel  =  DiagnosticLevel.info  }  )  →
[ String ](dart-core/String-class.html)

     A string representation of this object. 

inherited

[ toStringDeep ](foundation/DiagnosticableTree/toStringDeep.html) (  {  [
String ](dart-core/String-class.html) prefixLineOne