SnackService class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
showSnackbar (String message , {bool top = false , Color ? backgroundColor , TextStyle ? style , double ? elevation , EdgeInsetsGeometry ? margin , EdgeInsetsGeometry ? padding , double ? width , ShapeBorder ? shape , HitTestBehavior ? hitTestBehavior , SnackBarBehavior ? behavior , SnackBarAction ? action , double ? actionOverflowThreshold , bool ? showCloseIcon , Color ? closeIconColor , Duration duration = _snackBarDisplayDuration , Animation <double > ? animation , void onVisible ()?, Widget ? leading , DismissDirection ? dismissDirection , Clip clipBehavior = Clip.hardEdge })
→ dynamic
muestra mensaje recibe message, backgroundColor Recibe el color que se mostrara
style Puede ser nulo y pode defecto toma un valor
top Permite eligir si mostrara el mensaje en la parte superior o inferior por defecto es false
showSnackbarError (String message , {TextStyle ? style })
→ dynamic
muestra mensaje con backgroundColor color rojo, para representar mensaje de error, recibe message
style Puede ser nulo y pode defecto toma un valor