call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FProgressStyle(...));

Implementation

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