I found that MqttSubscriptionTopic().matches function is throwing error upon comparing two different topics. But the case is that base topic's length must be greater than the comparing topic's length then it throws this error:
`[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..3: 4
The raw topic passed inside the MqttSubscriptionTopic() must be of greater length if separated by "/" than the topic passed inside MqttPublicationTopic()
compare both using the MqttSubscriptionTopic("passed raw topic").matches function
I found that MqttSubscriptionTopic().matches function is throwing error upon comparing two different topics. But the case is that base topic's length must be greater than the comparing topic's length then it throws this error:
`[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..3: 4
0 List.[] (dart:core-patch/growable_array.dart:264:36)
1 MqttSubscriptionTopic.matches (package:mqtt5_client/src/mqtt_subscription_topic.dart:93:56)`
Steps to reproduce:
I've fixed the above issue and I'll create a PR