call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FSelectStyle(...));

Implementation

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