Message class

Annotations

Constructors

Message({required IconData icon, required Color color, required String title, String? body, Future? cancel, List<MessageAction> actions = const []})
const
Message.error({required String title, String? body, Future? cancel, List<MessageAction> actions = const [MessageAction()]})
const
Message.info({required String title, String? body, Future? cancel, List<MessageAction> actions = const [MessageAction()]})
const
Message.success({required String title, String? body, Future? cancel, List<MessageAction> actions = const [MessageAction()]})
const
Message.warning({required String title, String? body, Future? cancel, List<MessageAction> actions = const [MessageAction()]})
const

Properties

actions List<MessageAction>
final
body String?
final
cancel Future?
final
color Color
final
hashCode int
The hash code for this object.
no setteroverride
icon IconData
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
final

Methods

build(BuildContext context, {required ValueSetter<MaterialBannerClosedReason> hide}) MaterialBanner
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(BuildContext context) Future<MaterialBannerClosedReason>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override