setSupplyDatabase method
setSupplyDatabase(String) takes a file path (i.e. 'assets/PlatformDB.db') as a string representing a database file.
Implementation
@override
Future<void> setSupplyDatabase(String filePath) async {
final fileData = await rootBundle.load(filePath);
final bytes = fileData.buffer.asUint8List();
var sendMap = <String, dynamic>{"database": bytes};
return await methodChannel.invokeMethod('setSupplyDatabase', sendMap);
}