textBaseline property

  1. @override
TextBaseline? get textBaseline
override

If aligning items according to their baseline, which baseline to use.

Must not be null if crossAxisAlignment is CrossAxisAlignment.baseline.

Implementation

@override
TextBaseline? get textBaseline => _textBaseline;
  1. @override
set textBaseline (TextBaseline? value)
override

Implementation

@override
set textBaseline(TextBaseline? value) {
  assert(_crossAxisAlignment != CrossAxisAlignment.baseline || value != null);
  if (_textBaseline != value) {
    _textBaseline = value;
    markNeedsLayout();
  }
}