TickIcon method

dynamic TickIcon({
  1. TickType tickType = TickType.single,
  2. 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,
        ),
      );

  }

}