call method

  1. @useResult
FLabelStyle call(
  1. Object? _
)
inherited

Returns itself.

Allows FLabelStyle to replace functions that accept and return a FLabelStyle, such as a style's copyWith(...) function.

Example

Given:

void copyWith(FLabelStyle Function(FLabelStyle) nestedStyle) {}

The following:

copyWith((style) => FLabelStyle(...));

Can be replaced with:

copyWith(FLabelStyle(...));

Implementation

@useResult
FLabelStyle call(Object? _) => this as FLabelStyle;