FluidBuilder<T extends Fluid> constructor

const FluidBuilder<T extends Fluid>({
  1. required FluidChildBuilder<T> builder,
  2. FluidFactory<T>? fluidFactory,
  3. Key? key,
})

Creates a FluidBuilder using the given FluidFactory and provides it to the FluidChildBuilder. If the FluidFactory is null the closest fluid ancestor of the same type will be used

Implementation

const FluidBuilder({
  required this.builder,
  this.fluidFactory,
  Key? key,
}) : super(key: key);