Check out example codes for "print dart". It will help you in understanding the concepts better.

Code Example 1

import 'dart:html';

main() {
  var value = querySelector('input').value;
  print('The value of the input is: $value');
}

Learn ReactJs, React Native from akashmittal.com