FButtonIconStyle constructor

FButtonIconStyle({
  1. required Color enabledColor,
  2. required Color disabledColor,
  3. double size = 20,
})

Creates a FButtonIconStyle.

Contract

Throws AssertionError if:

  • size <= 0.0
  • size is Nan

Implementation

FButtonIconStyle({
  required this.enabledColor,
  required this.disabledColor,
  this.size = 20,
}) : assert(0 < size, 'The size is $size, but it should be in the range "0 < size".');