TUIMobileButtonBlockStyle constructor

TUIMobileButtonBlockStyle({
  1. Key? key,
  2. required Style style,
  3. TUIButton? left,
  4. TUIButton? right,
  5. TUIButton? button,
})

Implementation

TUIMobileButtonBlockStyle({
  Key? key,
  required this.style,
  this.left,
  this.right,
  this.button,
}) {
  if (style == Style.flexible) {
    assert((left != null) && (right != null));
  } else if (style == Style.two) {
    assert((left != null && right != null));
  } else {
    assert(button != null);
  }
}