call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FProgressStyles(...));

Implementation

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