SizeConstant.fromBuildContext constructor

SizeConstant.fromBuildContext(
  1. BuildContext context
)

Implementation

factory SizeConstant.fromBuildContext(BuildContext context) {
  // Adjust this multiplier to set your font size scaling

  return SizeConstant(
    context: context,
  );
}