mainAxisSize property

MainAxisSize get mainAxisSize

Implementation

MainAxisSize get mainAxisSize => switch (size) {
      LedgerButtonSize.medium => MainAxisSize.min,
      LedgerButtonSize.small => MainAxisSize.min,
      LedgerButtonSize.xtraSmall => MainAxisSize.min,
      _ => switch (_type) {
          _LedgerButtonType.tertiary1 => MainAxisSize.min,
          _LedgerButtonType.tertiary2 => MainAxisSize.min,
          _ => MainAxisSize.max,
        },
    };