Data Types and Variables

 void main()

{

int? b; // Declaration of Nullable Variable using "?". Here b is nullable variable
print(b);

// Declaration Of Variable
int a; // Here "a" is Non-Nullable Variable.Every variable is Non-Nullable by default

// ASSIGN
a = 5; //Initialization
print(a);

a = 8;
print(a);

BigInt longValue;
longValue = BigInt.parse("73934120933820813848494544199");

print(longValue);
num percentage = 99.67;
double per = 34.90;
bool isLogin = false;

isLogin = true;

// Inline Declaration
String name = "Raman";
name = "Ramanujan";

/// OUTPUT:
/// null
/// 5
/// 8
/// 73934120933820813848494544199
}

Comments

Popular posts from this blog

Pagination with Bloc Pattern in Flutter

Pagination First Practical in Flutter

ExpansionPanel with ExpansionPanelList with Complete Collapse Operation in Flutter