ShapeMorphSlot<T> constructor

const ShapeMorphSlot<T>({
  1. Key? key,
  2. required Signal<T> connect,
  3. required ShapeConfig shapeBuilder(
    1. T value
    ),
  4. required Size sizeBuilder(
    1. T value
    ),
  5. required Widget childBuilder(
    1. T value
    ),
  6. Color colorBuilder(
    1. T value
    )?,
  7. List<BoxShadow> shadowBuilder(
    1. T value
    )?,
  8. Duration duration = const Duration(milliseconds: 400),
  9. Curve curve = Curves.easeInOutCubic,
})

Implementation

const ShapeMorphSlot({
  super.key,
  required this.connect,
  required this.shapeBuilder,
  required this.sizeBuilder,
  required this.childBuilder,
  this.colorBuilder,
  this.shadowBuilder,
  this.duration = const Duration(milliseconds: 400),
  this.curve = Curves.easeInOutCubic,
});