This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "dart:io"; | |
| import "package:flutter/material.dart"; | |
| class Message extends StatelessWidget { | |
| final String thumbnail; | |
| final String text; | |
| final String timestamp; | |
| final String username; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import "dart:io"; | |
| import "dart:math"; | |
| parse(String text) { | |
| var parsedText; | |
| if (text.contains(".")) { | |
| parsedText = double.tryParse(text); | |
| } | |
| else { | |
| parsedText = int.tryParse(text); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ignoring exception in on_message | |
| Traceback (most recent call last): | |