AbstractStatefulBuilder constructor

const AbstractStatefulBuilder({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context
    ),
  3. void initState(
    1. BuildContext context
    )?,
  4. void dispose()?,
})

Implementation

const AbstractStatefulBuilder({
  super.key, // Use Key? instead of super.key for clarity
  required this.builder,
  this.initState,
  this.dispose,
});