open method
Opens the camera with the specified index.
Takes an index
as a parameter to specify the camera to open.
Returns a Future that completes with a boolean indicating success or failure.
Implementation
@override
Future<bool> open(int index) async {
bool success = await methodChannel.invokeMethod('open', [index]);
return success;
}