Flutter get Android meta-data in AndroidManifest.xml
flutter_android_meta_data
Flutter get Android <meta-data>
in AndroidManifest.xml.
Use
In AndroidManifest.xml.
<meta-data android:name="YOUR_CHANNEL" android:value="test" />
Future<void> initMateDataState() async {
String mateData;
try {
mateData = await FlutterMetaData.getMetaDataValue("Your Channel");
} on PlatformException {
mateData = 'Failed to get mata data.';
}
}