textAlign property

  1. @override
TextAlign get textAlign
override

Implementation

@override
TextAlign get textAlign {
  // Get style from self or closest parent if specified style property is not set
  // due to style inheritance.
  if (_textAlign == null && parent != null) {
    return parent!.textAlign;
  }
  return _textAlign ?? TextAlign.start;
}
set textAlign (TextAlign? value)

Implementation

set textAlign(TextAlign? value) {
  if (_textAlign == value) return;
  _textAlign = value;
  // Update all the children flow layout with specified style property not set due to style inheritance.
  _markNestFlowLayoutNeedsLayout(renderBoxModel, TEXT_ALIGN);
}