https://github.com/karan/typeof.dart
typeOf in Dart.
https://github.com/karan/typeof.dart
Last synced: 23 days ago
JSON representation
typeOf in Dart.
- Host: GitHub
- URL: https://github.com/karan/typeof.dart
- Owner: karan
- License: mit
- Created: 2014-11-22T18:49:45.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-05T12:57:51.000Z (about 9 years ago)
- Last Synced: 2025-02-12T07:10:57.143Z (11 months ago)
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/typeof
- Size: 129 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
typeof.dart
===========
typeOf in Dart.
### 1. Depend on it
In your `pubspec.yaml`, add:
dependencies:
typeof: ">=0.01"
### 2. Install it
Run from your command line:
$ pub get
Alternatively, your editor might support pub. Check the docs for your editor to learn more.
### 3. Import it
In your Dart code:
import 'package:typeof/typeof.dart';
### 4. Use it
String obj_type = typeOf(SomeObj);