textAlign property
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 && getParentRenderStyle() != null) {
return getParentRenderStyle()!.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(this, TEXT_ALIGN);
}