OnFailed typedef

OnFailed = void Function(int code, String type, String? message)

Callback function for animation failure events.

Called when an animation fails to load or play.

Parameters:

  • code: Error code indicating the type of failure
  • type: String description of the error type
  • message: Optional detailed error message

Implementation

typedef OnFailed = void Function(int code, String type, String? message);