onError property

dynamic Function(dynamic error, dynamic stackTrace)? onError
final

The Function to be called when the onPressed future is completed with an error.

Implementation

final Function(dynamic error, dynamic stackTrace)? onError;