In the documentation of findByWeight method it is mentioned: Returns the closest @code FontWeight} for a weight value as defined by the CSS and OpenType specifications.
@code FontWeight} should be {@code FontWeight}
@code FontWeight} should be {@code FontWeight}