Answers for "flutter check variable type"

0

check data type flutter

selector.runtimeType // return data type of the variable

Example:
if (selector.runtimeType == int) print("Hello")
Posted by: Guest on April-25-2021
0

type check of variable dart

var data;
print(data.runtimeType);
Posted by: Guest on March-07-2022

Browse Popular Code Answers by Language