Defining Variables One of many ways, and the simplest way, to define a variable in Dart is using the var key word . var message = ‘Hello, World’; This example creates a variable called message , and also initializes the variable with a String value of Hello, World .