likeWidget property

Widget Function(VideoModel? video, dynamic (int likes, bool liked))? likeWidget
final

Create like action widget.

The first argument is instant of Video.

The second argument is function to update data,

this function receives two argument:

first is total likes, second is liked status (true or false)

this function need be called when total likes or liked status be changed

Implementation

final Widget Function(VideoModel? video, Function(int likes, bool liked))?
    likeWidget;