TickIcon method
dynamic
TickIcon(
{ - TickType tickType = TickType.single,
- bool isOtherUser = false,
})
Implementation
TickIcon({TickType tickType = TickType.single, bool isOtherUser = false}){
TickType tickType = getTickType();
if(isOtherUser){
return Container();
}
switch(tickType){
case TickType.double:
return Container(
child: Icon(
Icons.done_all,
color: Colors.white,
size: 17,
),
);
case TickType.read:
return Container(
child: Icon(
Icons.done_all,
color: Colors.white,
size: 14,
),
);
default:
return Container(
child: Icon(
Icons.check,
color: !isOtherUser? Colors.white: Colors.black,
size: 14,
),
);
}
}