void message(String text, {bool success = false, error = false}) { this.text = text; if (success) { this.success(); } else if (error) { this.error(); } else { this.normal(); } updateState(); }