LikeToggleButton constructor

const LikeToggleButton({
  1. required bool initialState,
  2. required Widget likeBuilder(
    1. bool isLiked,
    2. int count
    ),
  3. required dynamic onTap(
    1. bool isLiked,
    2. int count
    ),
  4. LikeCounterPosition counterPosition = LikeCounterPosition.right,
  5. int? initialCount,
  6. dynamic onChange(
    1. LikeToggleButtonState state
    )?,
  7. Widget counterBuilder(
    1. int count,
    2. bool isLiked
    )?,
  8. 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);