getFontFamily static method

String getFontFamily(
  1. bool isBold
)

Implementation

static String getFontFamily(bool isBold) {
  String endStr = isBold ? "Bold" : "Regular";
  if (Platform.isAndroid) {
    return "Montserrat_$endStr";
  } else {
    return "SF_$endStr";
  }
}