addScreenRecordListener method
Listen when user screenrecord the screen You can add listener multiple time, and every listener will be executed
Implementation
void addScreenRecordListener(Function(bool recorded) callback) {
_screenRecordListener.add(callback);
}