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