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
2.1m questions
2.1m answers
60 comments
57.0k users