isEmoji method
Returns whether or not this string contains pictograms.
Returns true
if the string contains pictograms.
この文字列に絵文字が含まれているかどうかを返します。
絵文字が含まれている場合true
を返します。
Implementation
bool isEmoji() {
RegExp regExp = RegExp(
r"[\u{1F600}-\u{1F64F}|\u{1F300}-\u{1F5FF}|\u{1F680}-\u{1F6FF}|\u{2600}-\u{26FF}|\u{2700}-\u{27BF}]",
unicode: true);
return regExp.hasMatch(this);
}