get_radio_version_plugin

Creator: coderz1093

Last updated:

Add to Cart

Description:

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.