diff --git a/lib/receive_intent.dart b/lib/receive_intent.dart index de44d0c..7a74aa6 100644 --- a/lib/receive_intent.dart +++ b/lib/receive_intent.dart @@ -54,6 +54,13 @@ class Intent { "categories": categories, "extra": extra, }; + + @override + String toString() { + if (isNull) return 'Intent(null)'; + var str = 'Intent${toMap()}'; + return str.replaceFirst('{', '(').replaceFirst('}', ')', str.length - 1); + } } class ReceiveIntent {