call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FSliderStyle(...));

Implementation

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