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

Second GET API Calling with Bloc simple Example in Flutter

Stack Container Scrollable Card widget UI with Custom Widget

Pagination with Bloc Pattern in Flutter