call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FDateFieldStyle(...));

Implementation

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