SlackLogger class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
webhookUrl
→ String
-
base url of slack webhook
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
send(String message)
→ Future
-
pass
message
as string which also returns Future
-
sendImage({required String imageUrl, String? imageAltText})
→ Future<void>
-
pass
imageUrl
as string which also returns Future
optional pass imageAltText
as string
-
sendImageWithText({required String text, required String imageUrl, String? imageAltText})
→ Future<void>
-
pass
text
as string which also returns Future
imageUrl
as string
optional parameter imageAltText
as string
-
sendMarkdownAsAttachment({required List<String> markdownMessageList, required String color})
→ Future<void>
-
pass
markdownMessageList
as List of String markdown
pass color
as String (HEX)
It'll show as attachments in slack
-
sendTextAsAttachment({required String message, required String color})
→ Future<void>
-
pass
message
as string text message as attachment in slack,
pass color
as string eg: #ff0000,
-
sendTextWithButton({required String markdownMessage, required String buttonLabel, required String url})
→ Future<void>
-
pass
markdownMessage
as string text message,
buttonLabel
as string - button label,
url
as string - when user clicks button
-
toString()
→ String
-
A string representation of this object.
inherited