call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FLinearProgressStyle(...));

Implementation

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