call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FSidebarStyle(...));

Implementation

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