FooterView constructor

FooterView({
  1. Key? key,
  2. required List<Widget> children,
  3. required Footer footer,
  4. int? flex,
})

Implementation

FooterView({Key? key, required this.children, required this.footer, this.flex}) : super(key: key) {
  if (flex != null) {
    if (flex! > 10 || flex! < 1) {
      throw ArgumentError('Only 1-10 Flex range is allowed');
    }
  }
}