First import ‘dart:math’; then use pi/12.0 instead of math. PI/12.0 it should work fine.30 Eyl 2018
Read moreHow do you round up numbers in flutter?
To round up to the nearest whole number in an absolute sense, use ceil if the number is positive and floor if the number is smaller than 0 . The following function rounds numbers up to the closest integer. Or, use an extension function ( 6.3. roundUpAbs ).
Read more