Function that will be called when an error message occur
final void Function(String error) showError;