Last updated:
0 purchases
get radio version plugin
get_radio_version_plugin #
A plugin to get radio version from native code (Android).
Features #
get the radioVersion
Getting started #
To use this package, add get_radio_version_plugin as a dependency in your pubspec.yaml file.
Usage #
Example:
Declare variable:
String _radioVersion = 'Unknown';
copied to clipboard
Create Function initradioVersionState:
Future<void> initRadioVersionState() async {
String radioVersion;
try {
radioVersion = await GetRadioVersionPlugin.radioVersion ?? 'Unknown radio version';
} on PlatformException {
radioVersion = 'Failed to get radio version.';
}
if (!mounted) return;
setState(() {
_radioVersion = radioVersion;
});
}
copied to clipboard
Call into initState:
void initState() {
super.initState();
initRadioVersionState();
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.