font method

Text font({
  1. double? size,
  2. FontWeight? weight,
  3. FontStyle? style,
  4. String? family,
  5. List<String>? familyFallback,
})

A modifier that sets its Text's font.

Example:

Text('Hello, World!')
    .font(size: 18);

Implementation

Text font({
  double? size,
  FontWeight? weight,
  FontStyle? style,
  String? family,
  List<String>? familyFallback,
}) {
  return this._rebase(
    style: FlutterUITextStyle.rebase(
      this.style,
      fontSize: size,
      fontWeight: weight,
      fontStyle: style,
      fontFamily: family,
      fontFamilyFallback: familyFallback,
    ),
  );
}