LikeToggleButton constructor
const
LikeToggleButton({
- required bool initialState,
- required Widget likeBuilder(),
- required dynamic onTap(),
- LikeCounterPosition counterPosition = LikeCounterPosition.right,
- int? initialCount,
- dynamic onChange(
- LikeToggleButtonState state
- Widget counterBuilder()?,
- Key? key,
Implementation
const LikeToggleButton({
required this.initialState,
required this.likeBuilder,
required this.onTap,
this.counterPosition = LikeCounterPosition.right,
this.initialCount,
this.onChange,
this.counterBuilder,
Key? key,
}) : super(key: key);