ResponsiveStateful constructor

const ResponsiveStateful({
  1. int? sizeExtraSmall,
  2. int? sizeSmall,
  3. int? sizeMedium,
  4. int? sizeLarge,
  5. int? sizeExtraLarge,
  6. double? minHeight,
  7. Key? key,
})

Implementation

const ResponsiveStateful({
  this.sizeExtraSmall,
  this.sizeSmall,
  this.sizeMedium,
  this.sizeLarge,
  this.sizeExtraLarge,
  this.minHeight,
  super.key,
})  : assert(
        sizeExtraSmall == null || sizeExtraSmall > 0,
        'sizeExtraSmall must be greater than zero.',
      ),
      assert(
        sizeSmall == null || sizeSmall > 0,
        'sizeSmall must be greater than zero.',
      ),
      assert(
        sizeMedium == null || sizeMedium > 0,
        'sizeMedium must be greater than zero.',
      ),
      assert(
        sizeLarge == null || sizeLarge > 0,
        'sizeLarge must be greater than zero.',
      ),
      assert(
        sizeExtraLarge == null || sizeExtraLarge > 0,
        'sizeExtraLarge must be greater than zero.',
      ),
      assert(
        minHeight == null || minHeight >= 0,
        'minHeight must be equal or greater than zero.',
      );