entityOf method

MessageEntity? entityOf(
  1. String? type
)

Implementation

MessageEntity? entityOf(String? type) {
  var i = indexOfEntity(type);
  if (i >= 0) {
    return (entities ?? captionEntities)![i];
  } else {
    return null;
  }
}