- protected
Invoke a callback provided by the application and log any exceptions.
Source
@protected dynamic/*=T*/ invokeCallback/*<T>*/(String name, RecognizerCallback<dynamic/*=T*/> callback) { dynamic/*=T*/ result; try { result = callback(); } catch (exception, stack) { FlutterError.reportError(new FlutterErrorDetails( exception: exception, stack: stack, library: 'gesture', context: 'while handling a gesture', informationCollector: (StringBuffer information) { information.writeln('Handler: $name'); information.writeln('Recognizer:'); information.writeln(' $this'); } )); } return result; }