INNER CODE UNIT · Dart

ConstraintAlign

hackware1993/Flutter_ConstraintLayout · lib/src/core.dart:424

class ConstraintAlign {
  final ConstraintId _id;
  final ConstraintAlignType _type;

  /// margin can be negative
  double? _margin;
  double? _goneMargin;

  /// [0.0,1.0]
  /// The default value is 0.5, which means centering
  double? _bias;

  ConstraintAlign(this._id, this._type);

  ConstraintAlign margin(double margin) {
    if (_margin != null || _goneMargin != null || _bias != null) {
      _margin = margin;
      return this;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…