call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FPickerStyle(...));

Implementation

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