1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
build(BuildContext context) -> Widget
Describes the part of the user interface represented by this widget.
override
clearMaterialBanners() -> void
Removes all the materialBanners currently in queue by clearing the queue and running normal exit animation on the current materialBanner.
clearSnackBars() -> void
Removes all the snackBars currently in queue by clearing the queue and running normal exit animation on the current snackBar.
didChangeDependencies() -> void
Called when a dependency of this State object changes.
override
dispose() -> void
Called when this object is removed from the tree permanently.
override
hideCurrentMaterialBanner({MaterialBannerClosedReason reason = MaterialBannerClosedReason.hide}) -> void
Removes the current MaterialBanner by running its normal exit animation.
hideCurrentSnackBar({SnackBarClosedReason reason = SnackBarClosedReason.hide}) -> void
Removes the current SnackBar by running its normal exit animation.
removeCurrentMaterialBanner({MaterialBannerClosedReason reason = MaterialBannerClosedReason.remove}) -> void
Removes the current MaterialBanner (if any) immediately from registered Scaffolds.
removeCurrentSnackBar({SnackBarClosedReason reason = SnackBarClosedReason.remove}) -> void
Removes the current SnackBar (if any) immediately from registered Scaffolds.
showMaterialBanner(MaterialBanner materialBanner) -> ScaffoldFeatureController<MaterialBanner, MaterialBannerClosedReason>
Shows a MaterialBanner across all registered Scaffolds.
showSnackBar(SnackBar snackBar) -> ScaffoldFeatureController<SnackBar, SnackBarClosedReason>
Shows a SnackBar across all registered Scaffolds.
*/
// inherited from State<ScaffoldMessenger>
pub struct ScaffoldMessengerState;
impl Default for ScaffoldMessengerState {
fn default() -> Self {
Self {}
}
}