call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FHeaderStyles(...));

Implementation

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