OverflowBehavior constructor

const OverflowBehavior({
  1. required bool allowed,
  2. Pattern? overflowOn,
})

Implementation

const OverflowBehavior({
  required this.allowed,
  this.overflowOn,
}) : assert(
        (allowed && overflowOn != null) || !allowed,
        'If overflow is allowed, `pattern` must not be null.',
      );