Use toString
and/or toRadixString
int intValue = 1;
String stringValue = intValue.toString();
String hexValue = intValue.toRadixString(16);
or, as in the commment
String anotherValue="the value is $intValue";
More Related Contents:
- How to change status bar color in Flutter?
- Is there a way to load async data on InitState method?
- Flutter: RenderBox was not laid out
- What are Keys in the Stateless widgets class?
- Flutter- wrapping text [duplicate]
- Future.wait() for multiple futures
- What is the relation between stateful and stateless widgets in Flutter?
- Persisting AppBar Drawer across all Pages Flutter
- Replace initial Route in MaterialApp without animation?
- Flutter SVG rendering
- how can we use superscript and subscript text in flutter Text or RichText
- When I select a Textfield the keyboard moves over it
- Flutter Load Image from Firebase Storage
- Flutter: Update Widgets On Resume?
- Logging large strings from Flutter
- Flutter Firestore Server side Timestamp
- Can the spread operator be used to supply function arguments?
- Does using const in the widget tree improve performance?
- How to schedule background tasks in Flutter?
- How to use InputFormatter on Flutter TextField?
- How to listen for document changes in Cloud Firestore using Flutter?
- Colon : in Dart constructor syntax
- Flutter – How to set status bar color when AppBar not present
- Horizontally scrollable cards with Snap effect in flutter
- How to detect orientation change in layout in Flutter?
- Flutter: Is it somehow possible to create App Widgets (Android) and Today Extensions (iOS)? [duplicate]
- convert a String of “uint8list” to a Unit8List
- How can I simulate a tap event on a Flutter widget?
- How do you get the document id after adding document in Cloud Firestore in Dart
- how to add or remove item to the the existing array in firestore ?