addScreenShotListener method

void addScreenShotListener(
  1. dynamic callback(
    1. String filePath
    )
)

Listen when user screenshot the screen You can add listener multiple time, and every listener will be executed Note : filePath only work for android

Implementation

void addScreenShotListener(Function(String filePath) callback) {
  _screenshotListener.add(callback);
}