ShapeMorphSlot<T> constructor
const
ShapeMorphSlot<T>({ - Key? key,
- required Signal<T> connect,
- required ShapeConfig shapeBuilder(
- T value
),
- required Size sizeBuilder(
- T value
),
- required Widget childBuilder(
- T value
),
- Color colorBuilder(
- T value
)?,
- List<BoxShadow> shadowBuilder(
- T value
)?,
- Duration duration = const Duration(milliseconds: 400),
- 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,
});