What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-06 23:06:01
@property in python , set and get in python
# Using @property decorator class Celsius: def __init__(self, temperature=0): self.temperature = temperature def to_fahrenheit(self): return (self.temperature * 1.8) + 32 @property def temperature(self): print(&qu... Add solution -
Other 2021-09-05 13:48:03
how can i add dark mode quickly in flutter
void main() => runApp(MyApp()); class MyApp extends StatelessWidget { final _notifier = ValueNotifier<ThemeModel>(ThemeModel(ThemeMode.light)); @override Widget build(BuildContext context) { return ValueListenableBuilder<ThemeModel... Add solution -
Other 2021-09-04 18:22:03
what is callback in function handler
Events - Think of a Server (Employee) and Client (Boss). One Employee can have many Bosses. The Employee Raises the event, when he finishes the task, and the Bosses may decide to listen to the Employee event or not. The employee is the publisher and the b... Add solution -
Javascript 2021-09-03 19:15:03
constant arrays in javascript
const check = ['orange', 'banana', 'apple'] // we can perform all the array operations on the constant array so almost no difference check.push("pineappled") // pushes "pineappled" into the check check[3] = "pineapple" // mo... Add solution