initialize method
Starts listening to screenshots (use addListener(VoidCallback callback)
to run actions when user screenshots)
Implementation
Future<void> initialize() async {
_channel.setMethodCallHandler(_handleMethod);
await _channel.invokeMethod('initialize');
}