I imported math.
import 'dart:math';
But how can I call "PI" constant?
This is not working.
math.pi / 12.0
you should import 'dart:math' as math; instead of just import 'dart:math';
import 'dart:math' as math;
because when you use the as keyword you provide the imported library a name so you can reference it anywhere in your file
as
1.4m articles
1.4m replys
5 comments
57.0k users