how to check Type in flutter code example Example: flutter type check bool check(dynamic object) => object is T;