Dart Programming – toString Method

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
dart programming toString method

In this guide, we will discuss toString Method in Dart Programming Language. This method returns the string representation of the number’s value.

Syntax

Number.toString()

Return Value

Returns a string representing the specified Number object.

Example

void main() {   
   int n1 = 2;   
   var value = n1.toString();   
   print( value is String ); 
}  

It will produce the following output −.

true

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply